diff options
Diffstat (limited to 'jinja2/testsuite')
-rw-r--r-- | jinja2/testsuite/lexnparse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jinja2/testsuite/lexnparse.py b/jinja2/testsuite/lexnparse.py index c56d510..99802a3 100644 --- a/jinja2/testsuite/lexnparse.py +++ b/jinja2/testsuite/lexnparse.py @@ -36,6 +36,10 @@ class LexerTestCase(JinjaTestCase): '{%raw%}{{ bar }}|{% baz %}{% endraw %}') assert tmpl.render() == 'foo|{{ bar }}|{% baz %}' + def test_raw2(self): + tmpl = env.from_string('1 {%- raw -%} 2 {%- endraw -%} 3') + assert tmpl.render() == '123' + def test_balancing(self): env = Environment('{%', '%}', '${', '}') tmpl = env.from_string('''{% for item in seq |