User Tools

Site Tools


nobr

Differences

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

Link to this comparison view

Next revision
Previous revision
nobr [2013/12/16 23:34]
l created
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 ====
  
-><<​nobr>>​ //Text// <<​endnobr>>​+>%%<<%%nobr%%>>%% //​Text// ​%%<<%%endnobr%%>>%%
  
 ==== 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>​
-All you possess is an Axe and a Backpack containing 1 Meal. <<set $meals ​1>> <<set $weapon ​"​axe">>​+All you possess is an Axe and a Backpack containing 1 Meal. <<set $meals ​to 1>> <<set $weapon ​to "​axe">>​
 </​code>​ </​code>​
  
-This is not particularly readable, however. The ''​<<​nobr>>​'' ​macro can help in these situations, like so:+This is not particularly readable, however. The <<​nobr>>​ macro can help in these situations, like so:
  
 <​code>​ <​code>​
 All you possess is an Axe and a Backpack containing 1 Meal. <<​nobr>>​ All you possess is an Axe and a Backpack containing 1 Meal. <<​nobr>>​
-<<set $meals ​1>> +<<set $meals ​to 1>> 
-<<set $weapon ​"​axe">>​+<<set $weapon ​to "​axe">>​
 <<​endnobr>>​ <<​endnobr>>​
 </​code>​ </​code>​
  
 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.1387254876.txt.gz · Last modified: 2017/10/09 20:37 (external edit)