From 3617a0276951007e8b5cfd43e4f96d38a14176ea Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 1 Apr 2009 19:17:31 +0200 Subject: [PATCH] Added a testcase for the last change. --HG-- branch : trunk --- tests/test_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index 8d39ab0..ca9506d 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -59,6 +59,7 @@ LINE_SYNTAX_PRIORITY2 = '''\ I'm a multiline comment */ # for item in seq: * ${item} ## this is just extra stuff + ## extra stuff i just want to ignore # endfor ''' @@ -110,4 +111,4 @@ def test_line_syntax_priority(): assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2' env = Environment('{%', '%}', '${', '}', '/*', '*/', '#', '##') tmpl = env.from_string(LINE_SYNTAX_PRIORITY2) - assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2' + assert tmpl.render(seq=[1, 2]).strip() == '* 1\n\n* 2' -- 2.26.2