User Tools

Site Tools


nobr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
nobr [2013/12/16 23:35]
l
nobr [2017/10/09 20:39] (current)
Line 1: Line 1:
 +<- [[if|Displaying Text Conditionally]] --------- [[stylesheet|Changing Your Story'​s Appearance]]->​
 +
 ===== <<​nobr>>​ ===== ===== <<​nobr>>​ =====
  
-The <<​nobr>>​ macro removes all the line breaks in the enclosed text.+The <<​nobr>> ​[[macro]] removes all of the line breaks in the enclosed text.
  
 ==== Usage ==== ==== Usage ====
Line 9: Line 11:
 ==== Motivating example ==== ==== Motivating example ====
  
-In some cases, you'll want to do several things with macros at once. For example, in this passage ​from the previous section:+In some cases, you'll want to do several things with macros at once. For example, in this [[passage]]:
  
 > All you possess is an Axe (note under Weapons on your Action Chart) and a Backpack containing 1 Meal (note under Meals on your Action Chart). > All you possess is an Axe (note under Weapons on your Action Chart) and a Backpack containing 1 Meal (note under Meals on your Action Chart).
Line 15: Line 17:
 (Joe Dever, //Flight from the Dark//) (Joe Dever, //Flight from the Dark//)
  
-You'd probably want to set both the protagonist'​s weapon and number of meals. You can do this without any extraneous whitespace appearing in your story by putting all the <<​set>>​ statements on the same line:+You'd probably want to set both the protagonist'​s weapon and number of meals. You can do this without any extraneous whitespace appearing in your story by putting all the [[<<​set>>​]] statements on the same line:
  
 <​code>​ <​code>​
Line 31: Line 33:
  
 All the line breaks between <<​nobr>>​ and <<​endnobr>>​ are eliminated. All the line breaks between <<​nobr>>​ and <<​endnobr>>​ are eliminated.
 +
 +==== See also ====
 +
 +  * The ''​nobr''​ [[tag|passage tag]] can be applied if you want every line break in the passage to be removed, without having to insert the macro tags around the entire text.
 +  * The [[<<​silently>>​]] macro was used for roughly the same purposes as <<​nobr>>​ prior to version 1.4.0.
 +
 +<- [[if|Displaying Text Conditionally]] --------- [[stylesheet|Changing Your Story'​s Appearance]]->​
nobr.1387254959.txt.gz ยท Last modified: 2017/10/09 20:37 (external edit)