Fixing multiline parsing to preserve newlines

Fixes #8813
This commit is contained in:
James Cammarata 2014-09-04 09:35:41 -05:00
parent bac97c8321
commit 317ab06bc6
3 changed files with 25 additions and 25 deletions

View file

@ -715,7 +715,7 @@ class TestUtils(unittest.TestCase):
# in memory of neighbors cat
# we preserve line breaks unless a line continuation character preceeds them
'a {% if x %} y {%else %} {{meow}} {% endif %} "cookie\nchip" \\\ndone\nand done',
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', '"cookie\nchip"', 'done', '\nand', 'done']
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', '"cookie\nchip"', 'done\n', 'and', 'done']
)
# test space preservation within quotes