diff options
author | njogun <njogun@example.net> | 2014-11-29 16:29:21 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2016-10-09 15:15:31 +0200 |
commit | 992842afdc2efe2023e64c8c777c0e2e7932a76c (patch) | |
tree | 297c196a6093ed1dce094dc0772582d15fba16da | |
parent | 8c3bf160feaa35f933fb0aa8b00bfc18eb56b75e (diff) | |
download | bottle-992842afdc2efe2023e64c8c777c0e2e7932a76c.tar.gz |
Add test for Windows-style line endings (CRLF ie \r\n) in template when using multiline code block
-rwxr-xr-x | test/test_stpl.py | 3 |
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 = ''' |