textadventures / squiffy

a tool for creating interactive fiction
MIT License
158 stars 37 forks source link

Weird code error #85

Open davymc opened 3 years ago

davymc commented 3 years ago

Hi,

One of my links appears all messed up in the game:

<a class="squiffy-link link-section" data-section=""I'm sorry, what did you say?"" role="link" tabindex="0">"I'm sorry, what did you say?"

The code is written in a very simple way and I don't think there can be any errror on my side:

[[taxi]]:

Just as the man steps closer, a taxi passes and you open the door and jump in!

The taxi driver looks surprised but he keeps driving, success!

He says something you don't understand.

[ignore him].

["I'm sorry, what did you say?"].

[[taxi2]]:

Is this just a bug, any ideas how to solve it?

RoperNo1 commented 3 years ago

I haven't looked at the code but I would guess it doesn't like the speech marks at the beginning and end of the link. So start by taking them out and see if that works.

---------------------------


From: davymc notifications@github.com Sent: Tuesday, February 9, 2021 1:40:25 PM To: textadventures/squiffy squiffy@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [textadventures/squiffy] Weird code error (#85)

Hi,

One of my links appears all messed up in the game:

<a class="squiffy-link link-section" data-section=""I'm sorry, what did you say?"" role="link" tabindex="0">"I'm sorry, what did you say?"

The code is written in a very simple way and I don't think there can be any errror on my side:

[[taxi]]:

Just as the man steps closer, a taxi passes and you open the door and jump in!

The taxi driver looks surprised but he keeps driving, success!

He says something you don't understand.

[ignore him].

["I'm sorry, what did you say?"].

[[taxi2]]:

Is this just a bug, any ideas how to solve it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/textadventures/squiffy/issues/85, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5ZCNKPA6V6FOYOQJBZDRTS6E3MTANCNFSM4XLARSGQ.