User:GarveyPatrickD/Combining the nowiki and pre tags

These are a series of tests of combining the  and   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?

=Using only one tag=

alone
Source:

  Lorem ipsum dolor sit amet, consectetur adipiscing elit.   

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

alone
Source:

  Lorem ipsum dolor sit amet, consectetur adipiscing elit.   

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

alone
Source:

    Lorem  ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.   

Display:

Lorem ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.

Note: minimum white space is used in the result.

alone
Source:

    Lorem  ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.   

Display:

Lorem ipsum  dolor  sit  amet,  consectetur  adipiscing  elit. Note: white space is preserved in the result

alone
Source:

 

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit. 



Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: the result is the same as placing all the tokens on one line in the source.

alone
Source:

 

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit. 



Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Note: each token between the tags is placed on a separate line.

alone
Source:

 

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit.





Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: the result is the same as placing all the tokens on one line in the source.

alone
Source:

 

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit.





Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: each token between the tags is placed on a separate line with, at least, leading white space, including vertical white space.

=Using both tags=

first, then
Source:

   Lorem ipsum dolor sit amet, consectetur adipiscing elit.    

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: the    tag is displayed rather than consumed.

first, then
Source:

   Lorem ipsum dolor sit amet, consectetur adipiscing elit.      

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Note: both tags are consumed.

first, then
Source:

     Lorem  ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.    

Display:

Lorem ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.

Note: the    tag is displayed rather than consumed and the white space after the tag is minimized.

first, then
Source:

     Lorem  ipsum  dolor  sit  amet,  consectetur  adipiscing  elit.      

Display:

Lorem ipsum  dolor  sit  amet,  consectetur  adipiscing  elit. Note: both tags are consumed and the white space is preserved.

first, then
Source:

<b>

</b>

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit. <b>

</b>

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: the    tag is displayed rather than consumed and white space is used between the tag and the next/previous token.

first, then
Source:

<b>

</b>

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit. <b>

</b>

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Note: the additional vertical spacing in the result.

first, then
Source:

<b>

</b>

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit.

<b>

</b>

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note: the    tag is displayed rather than consumed and white space is used between the tag and the next/previous token.

first, then
Source:

<b>

</b>

Lorem

ipsum

dolor

sit

amet,

consectetur

adipiscing

elit.

<b>

</b>

Display:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Note: the additional vertical spacing and preserved horizontal spacing in the result. =Conclusion= Using the   tag pair inside a    tag pair has no additional effect.