# HG changeset patch # User Ludovic Chabant # Date 1425543997 28800 # Node ID 078e64dba77ded2a95340ad3b5a7185e69a28183 # Parent 7081a5f88e10a1c98afd85d86d7e863a761d395b jinja: Fix Twig compatibility for block trimming. diff -r 7081a5f88e10 -r 078e64dba77d piecrust/templating/jinjaengine.py --- a/piecrust/templating/jinjaengine.py Thu Mar 05 00:26:08 2015 -0800 +++ b/piecrust/templating/jinjaengine.py Thu Mar 05 00:26:37 2015 -0800 @@ -126,7 +126,7 @@ # Twig trims blocks. if twig_compatibility_mode is True: - self.trim_blocks = True + kwargs['trim_blocks'] = True # All good! Create the Environment. super(PieCrustEnvironment, self).__init__(*args, **kwargs)