0 votes
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
by (159k 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?"'']

 

by (170 points)
this worked, thank you so much!!! :D
...