From: Gabriel Wicke Date: Thu, 8 Nov 2012 22:04:08 +0000 (-0800) Subject: Add a test for named vs. positional parameter whitespace stripping X-Git-Tag: 1.31.0-rc.0~21698^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=23b3a8e803e9dc9f1481306d489314c589975a94;p=lhc%2Fweb%2Fwiklou.git Add a test for named vs. positional parameter whitespace stripping Change-Id: Ic673cc224c41aa452bf8d97fc0f1e06fcf2befed --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index fd4c08bad8..790723c0b3 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1042,6 +1042,34 @@ Templates: Pre: 1f: Wrapping should be based on expanded content !!end +!! test +Templates: Strip whitespace from named parameters, but not positional ones +!! input +{{echo| + foo}} + +{{echo| +* foo}} + +{{echo| 1 = + foo}} + +{{echo| 1 = +* foo}} +!! result +
foo
+
+


+

+ +

foo +

+ + +!! end + ### ### Parsoid-centric tests for testing RT edge cases for pre ###