I’m interested in this too. I’ve been doing a game with lots of “[say something]” type of constructions in it, which create extra line breaks. I believe the parser is expecting some text besides the subtitution, which becomes its own thing.
One way to handle this if your project isn’t large, is to just use the “Output Filtering” extension and not worry about it.
I did some experimentation though.
[rant][code]“Test”
A room has a number called cherryval. Cherryval is usually 15.
To say cherries: say “With punctuation, there are [Cherryval in words] delicious cherries!”.
To say cherries2: say “Without punctuation, there are [Cherryval in words] delicious cherries”.
Orchard 1 is a room. “[Cherries]”.
Orchard 2 is north of Orchard 1. "[Cherries2] ".
Orchard 3 is north of Orchard 2. “Room description words. [cherries]”.
Orchard 4 is north of Orchard 3. “Room description words. [cherries2]”.
Orchard 5 is north of Orchard 4. “Room description, no space.”
Orchard 6 is north of Orchard 5. "Room description, space. "
Orchard 7 is north of Orchard 6. “Room description then cherries, no period after bracket. [cherries]”
Orchard 8 is north of Orchard 7. “Room descripition then cherries, period after bracket. [cherries].”
Orchard 9 is north of Orchard 8. "Room description, then cherries, space after bracket. [cherries] "
Orchard 10 is north of Orchard 9. "Room description, then cherries, period space after bracket. [cherries]. "
Orchard 11 is north of Orchard 10. “Room description then cherries2, no period after bracket. [cherries2]”
Orchard 12 is north of Orchard 11. “Room descripition then cherries2, period after bracket. [cherries2].”
Orchard 13 is north of Orchard 12. "Room description, then cherries2, space after bracket. [cherries2] "
Orchard 14 is north of Orchard 13. "Room description, then cherries2, period space after bracket. [cherries2]. "
[/code]
[code]
Test
An Interactive Fiction
Release 1 / Serial number 131024 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD
Orchard 1
With punctuation, there are fifteen delicious cherries!
n
Orchard 2
Without punctuation, there are fifteen delicious cherries
n
Orchard 3
Room description words. With punctuation, there are fifteen delicious cherries!
n
Orchard 4
Room description words. Without punctuation, there are fifteen delicious cherries
n
Orchard 5
Room description, no space.
n
Orchard 6
Room description, space.
n
Orchard 7
Room description then cherries, no period after bracket. With punctuation, there are fifteen delicious cherries!
n
Orchard 8
Room descripition then cherries, period after bracket. With punctuation, there are fifteen delicious cherries!
.
n
Orchard 9
Room description, then cherries, space after bracket. With punctuation, there are fifteen delicious cherries!
n
Orchard 10
Room description, then cherries, period space after bracket. With punctuation, there are fifteen delicious cherries!
.
n
Orchard 11
Room description then cherries2, no period after bracket. Without punctuation, there are fifteen delicious cherries
n
Orchard 12
Room descripition then cherries2, period after bracket. Without punctuation, there are fifteen delicious cherries.
n
Orchard 13
Room description, then cherries2, space after bracket. Without punctuation, there are fifteen delicious cherries
n
Orchard 14
Room description, then cherries2, period space after bracket. Without punctuation, there are fifteen delicious cherries.
n
You can’t go that way.
[/code][/rant]