Test a newline-only template parameter
authorGabriel Wicke <gwicke@wikimedia.org>
Fri, 14 Dec 2012 19:54:55 +0000 (11:54 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Fri, 14 Dec 2012 20:37:25 +0000 (12:37 -0800)
Change-Id: I99f17767e0aed915e84962a72403ebfb3b1307be

tests/parser/parserTests.txt

index 6025ce1..af4d218 100644 (file)
@@ -5770,6 +5770,28 @@ disabled
 </span>
 !!end
 
+!! test
+Templates: Ugly templates: 3. newline-only template parameter
+!! input
+foo {{echo|
+}}
+!! result
+<p>foo 
+</p>
+!! end
+
+# This looks like a bug: a single newline triggers p/br for some reason.
+!! test
+Templates: Ugly templates: 4. newline-only template parameter inconsistency
+!! input
+{{echo|
+}}
+!! result
+<p><br />
+</p>
+!! end
+
+
 !!test
 Parser Functions: 1. Simple example
 !!input