Skip to content
Stormrose edited this page Mar 22, 2013 · 2 revisions

Link to file: http://github.com/tweecode/TwineQuest/blob/master/macros/9999%20Macro%20br.twee
Contributer: Et

Twine's handling of newlines leaves a lot to be desired. Currently (Feb 2013) newlines are stripped at the start and end within <<if>> <<else>> <<endif>> blocks and at the beginning or end of passages. The solution is the force these breaks using <html><br></html> - but that is a ton of typing so the <<br>> macro saves some keystrokes and adds readability. Here's some example tweecode:

::BR Macro demo
Today I feel <<if $condition == true>>
<<br>>in need of a break.
<<else>>
linear.
<<endif>>
Clone this wiki locally