Difference between revisions of "User:GarveyPatrickD/Combining the nowiki and pre tags"
(Continuing to improve the tests.) |
(Added Lead section and continued building tests) |
||
Line 1: | Line 1: | ||
+ | These are a series of tests of combining the <nowiki><nowiki></nowiki> and <nowiki><pre></nowiki> tags. This is motivated by the results seen after a migration utility was used on pages encoded in another wiki syntax for use in a replacement MediaWiki. The most important question is, is there a reason to use both of these tags together? If so, what is the effect of various nestings of the two tags? |
||
− | __NOTOC__ |
||
+ | __TOC__ |
||
=Using only one tag= |
=Using only one tag= |
||
Line 77: | Line 78: | ||
===Leading and trailing white space=== |
===Leading and trailing white space=== |
||
+ | <b> |
||
− | ====<nowiki><nowiki> lorem ipsum </nowiki></nowiki>==== |
||
+ | <nowiki><nowiki></nowiki> |
||
+ | <br /> Lorem |
||
+ | <br /> ipsum |
||
+ | <br /> dolor |
||
+ | <br /> sit |
||
+ | <br /> amet, |
||
+ | <br /> consectetur |
||
+ | <br /> adipiscing |
||
+ | <br /> elit. |
||
+ | <br /></nowiki> |
||
+ | </b> |
||
+ | <br /> |
||
<nowiki> |
<nowiki> |
||
+ | Lorem |
||
− | lorem ipsum |
||
+ | ipsum |
||
+ | dolor |
||
+ | sit |
||
+ | amet, |
||
+ | consectetur |
||
+ | adipiscing |
||
+ | elit. |
||
</nowiki> |
</nowiki> |
||
<br /> |
<br /> |
||
− | Please note the result is the same. |
+ | Please note the result is the same as placing all the tokens on one line in the source. |
====<nowiki><pre> lorem ipsum </pre></nowiki>==== |
====<nowiki><pre> lorem ipsum </pre></nowiki>==== |
||
<pre> |
<pre> |
||
+ | Lorem |
||
− | lorem ipsum |
||
+ | ipsum |
||
+ | dolor |
||
+ | sit |
||
+ | amet, |
||
+ | consectetur |
||
+ | adipiscing |
||
+ | elit. |
||
</pre> |
</pre> |
||
<br /> |
<br /> |
Revision as of 18:28, 24 November 2011
These are a series of tests of combining the <nowiki> and <pre> tags. This is motivated by the results seen after a migration utility was used on pages encoded in another wiki syntax for use in a replacement MediaWiki. The most important question is, is there a reason to use both of these tags together? If so, what is the effect of various nestings of the two tags?
Contents
Using only one tag
Placing all the tokens on one line in the source
No leading or trailing white space
<nowiki>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</nowiki>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<pre>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</pre>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Leading and trailing white space
<nowiki> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </nowiki>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note no leading white space is used in the result.
<pre> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </pre>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note additional white space, at least leading, is used in the result
Placing each token on a separate line in the source
No leading or trailing white space
<nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
</nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Please note the result is the same as placing all the tokens on one line in the source.
<pre>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note each token between the tags is placed on a separate line.
Leading and trailing white space
<nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
</nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Please note the result is the same as placing all the tokens on one line in the source.
<pre> lorem ipsum </pre>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note the result is the same.
Using both tags
Placing all the tokens on one line in the source
<nowiki> first, then <pre>
<pre> lorem ipsum </pre>
<pre> first, then <nowiki>
lorem ipsum
Placing each token on a separate line in the source
<nowiki> first, then <pre>
<pre> lorem ipsum </pre>
<pre> first, then <nowiki>
Please note the additional vertical spacing in the result.
lorem ipsum