rehamaltamimi / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

incorrect rendering of newlines/spaces in #if #102

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

== SpaceInIfTest1 ==
{{#if:{{NAMESPACE}}
| <!--Not article space, do nothing-->Not article space
| <!--Article space-->Article space
}}

== SpaceInIfTest2 ==
{{#if:{{NAMESPACE}}
| <!--Not article space, do nothing-->
  Not article space
| <!--Article space-->
  Article space
}}

What is the expected output? What do you see instead?
Apparently, both should render the same, i.e. the added newline and the spaces 
at the beginning should NOT start a pre environment.

What version of the product are you using? On what operating system?
3.0.18

Please provide any additional information below.
If I read this correctly, this behaviour is defined in
https://meta.wikimedia.org/wiki/Help:Newlines_and_spaces#Trimming_on_expansion
"Spaces, tabs and newlines are stripped from: [...] * the start and end of the 
expanded wikitext of the value of a parameter of a parser function"

Original issue reported on code.google.com by nico.kru...@googlemail.com on 3 Jul 2012 at 3:37

GoogleCodeExporter commented 8 years ago
Commited r5766

Original comment by axelclk@gmail.com on 3 Jul 2012 at 5:15

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 3 Jul 2012 at 5:30

GoogleCodeExporter commented 8 years ago
thank you once again

Original comment by nico.kru...@googlemail.com on 4 Jul 2012 at 9:27

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 8 Aug 2012 at 12:59