Skip to content

Commit 13faadf

Browse files
committed
Behavior change in lstrip_blocks in Jinja 2.11.0
Jinja 2.11.0 got released a couple days ago, and it changed the behavior of lstrip_blocks. This breaks some templates. It's not yet clear if we misunderstood the lstrip_blocks documentation (and things were never expected to work that way), or if Jinja2 introduced a breaking change. Upstream bug report pallets/jinja#1138
1 parent bdb6c9c commit 13faadf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def read(fname):
4343
],
4444
install_requires=[
4545
'pytest>=3.3.0',
46-
'Jinja2>=2.8',
46+
# Avoid Jinja 2.11 until https://github.com/pallets/jinja/issues/1138
47+
# is sorted.
48+
'Jinja2 >=2.8, <2.11',
4749
],
4850
tests_require=[
4951
'pyyaml',

0 commit comments

Comments
 (0)