From 23b3a8e803e9dc9f1481306d489314c589975a94 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 8 Nov 2012 14:04:08 -0800 Subject: [PATCH] Add a test for named vs. positional parameter whitespace stripping Change-Id: Ic673cc224c41aa452bf8d97fc0f1e06fcf2befed --- tests/parser/parserTests.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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 ### -- 2.20.1