summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjogun <njogun@example.net>2014-11-29 16:29:21 +0100
committerMarcel Hellkamp <marc@gsites.de>2016-10-09 15:15:31 +0200
commit992842afdc2efe2023e64c8c777c0e2e7932a76c (patch)
tree297c196a6093ed1dce094dc0772582d15fba16da
parent8c3bf160feaa35f933fb0aa8b00bfc18eb56b75e (diff)
downloadbottle-992842afdc2efe2023e64c8c777c0e2e7932a76c.tar.gz
Add test for Windows-style line endings (CRLF ie \r\n) in template when using multiline code block
-rwxr-xr-xtest/test_stpl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_stpl.py b/test/test_stpl.py
index 75ca42b..bd39a1d 100755
--- a/test/test_stpl.py
+++ b/test/test_stpl.py
@@ -303,6 +303,9 @@ class TestSTPLDir(unittest.TestCase):
18
'''
self.assertRenders(source, result)
+ source_wineol = '<% a = 5\r\nb = 6\r\nc = 7\r\n%>\r\n{{a+b+c}}'
+ result_wineol = '18'
+ self.assertRenders(source_wineol, result_wineol)
def test_multiline_ignore_eob_in_string(self):
source = '''