About Stripping Leading and Trailing Whitespaces from Translatable Strings
For the {% blocktrans %}
template tags use the trimmed
parameter to remove unnecessary whitespace characters from translatable strings:
{% blocktrans trimmed %}
Hello, World!
{% endblocktrans %}
Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You