From 625d1ff0b72a30527327f86a2105d4088e2d55e5 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 14 Dec 2012 11:54:55 -0800 Subject: [PATCH] Test a newline-only template parameter Change-Id: I99f17767e0aed915e84962a72403ebfb3b1307be --- tests/parser/parserTests.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 6025ce1329..af4d218e08 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -5770,6 +5770,28 @@ disabled !!end +!! test +Templates: Ugly templates: 3. newline-only template parameter +!! input +foo {{echo| +}} +!! result +

foo +

+!! 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 +


+

+!! end + + !!test Parser Functions: 1. Simple example !!input -- 2.20.1