djangosnippets.org: Latest snippets tagged with 'blank'https://djangosnippets.org/tags/blank/2008-01-29T14:30:23.508177-06:00Template tag for stripping blank lines
2008-01-29T14:30:23.508177-06:00akaiholahttps://djangosnippets.org/snippets/569/<p>When writing clean and easy-to-read templates, it's usually good to have structural template tags (e.g. {%for%}, {%if%}) alone on their own line with proper indentation.</p>
<p>When such a template is rendered, the resulting HTML will have blank lines in place of the template tags. The leading blank space used for …</p>
Freely redistributable