Added a testcase for the last change.
--HG--
branch : trunk
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 @@
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 @@
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'