niwinz / django-jinja

Simple and nonobstructive jinja2 integration with Django.
http://niwinz.github.io/django-jinja/latest/
BSD 3-Clause "New" or "Revised" License
360 stars 102 forks source link

makemessages: support jinja's trim_blocks and lstrip_blocks #311

Closed wizpig64 closed 1 month ago

wizpig64 commented 5 months ago

Hiya,

This change addresses issue #306, enabling support for jinja's trim_blocks and lstrip_blocks settings when it comes to our makemessages monkeypatch. If those settings are enabled in TEMPLATES, their respective transformations are applied to all exported template blocks.

Included are several .po files that reflect makemessages's expected output given the combination of each setting, combined with ext.i18n.trimmed being turned on or off.