summaryrefslogtreecommitdiff
path: root/tests/test_filters.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_filters.py')
-rw-r--r--tests/test_filters.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_filters.py b/tests/test_filters.py
index 5a11d3f..2c119c3 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -185,6 +185,10 @@ class TestFilter:
"""
self._test_indent_multiline_template(env, markup=True)
+ def test_indent_width_string(self, env):
+ t = env.from_string("{{ 'jinja\nflask'|indent(width='>>> ', first=True) }}")
+ assert t.render() == ">>> jinja\n>>> flask"
+
@pytest.mark.parametrize(
("value", "expect"),
(