Difference between revisions of "Template:White-space"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#switch: {{{1|}}}<includeonly>
+
{{#switch: {{{1|}}}
 
| normal  = white-space: normal;    <!-- multiple white space collapses, text wraps at box border.                        -->
 
| normal  = white-space: normal;    <!-- multiple white space collapses, text wraps at box border.                        -->
 
| wrap    = white-space: pre-wrap;  <!-- whitespace preserved, text wraps at box border and line breaks.                  -->
 
| wrap    = white-space: pre-wrap;  <!-- whitespace preserved, text wraps at box border and line breaks.                  -->
 
| wiki    = white-space: nowrap;    <!-- This is the brain damaged method the magic (prefix w/space) wiki text boxes use. -->
 
| wiki    = white-space: nowrap;    <!-- This is the brain damaged method the magic (prefix w/space) wiki text boxes use. -->
 
| collapse = white-space: pre-line;  <!-- multiple white space collapses, text wraps at box border and line breaks.        -->
 
| collapse = white-space: pre-line;  <!-- multiple white space collapses, text wraps at box border and line breaks.        -->
| code                              <!-- fall through to next-->
+
| code                              <!-- easier to remember effect name.                          - fall through to next -->
| pre                                <!-- fall through to next-->
+
| pre                                <!-- explicitly defined name.                                  - fall through to next -->
| #default = white-space: pre; </includeonly>
+
| #default = white-space: pre;       <!-- acts like 'pre' whitespace preserved, text wraps at box border and line breaks.  -->
 
}}
 
}}

Revision as of 06:19, 18 February 2013

white-space: pre;