0 votes
asked by (170 points)

hi! so in the story i'm writing, i have occasional lines of dialogue that are only visible if certain variables are met.

here's an example of one piece:

A while later, Violetta steps out of Room 268 and joins Tess & Avery down the hall. She gives a friendly wave to Avery and leans back against the wall.

(if: $A > 1)[''"Hey, lovebirds. Have either of you heard from Laura or Thaddeus lately?"''

Avery faintly blushes as Tess shakes her head. ''"No, is something up?"'']

(if: $A <= 1)[''"Hey, you too. Have either of you heard from Laura or Thaddeus lately?"''

Tess shakes her head. ''"No, is something up?"'']

but the passages end up looking like this - note the awkward gap between the first and second paragraph compared to the rest. 

i get that it's ignoring the first if statement because it's not true, but is there a way to get rid of that gap in the html?

thanks!

1 Answer

+1 vote
answered by (120k points)

You can use Escaped line break markup to remove the unwanted line-break at the end of the first (if:) macro's associated hook, and manually remove the line-break between the two (if:) macros.

A while later, Violetta steps out of Room 268 and joins Tess & Avery down the hall. She gives a friendly wave to Avery and leans back against the wall.

(if: $A > 1)[''"Hey, lovebirds. Have either of you heard from Laura or Thaddeus lately?"''

Avery faintly blushes as Tess shakes her head. ''"No, is something up?"'']\
(if: $A <= 1)[''"Hey, you too. Have either of you heard from Laura or Thaddeus lately?"''

Tess shakes her head. ''"No, is something up?"'']

 

commented by (170 points)
this worked, thank you so much!!! :D
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...