Changes between Initial Version and Version 2 of Ticket #4446
- Timestamp:
- May 31, 2007, 8:43:03 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4446
- Property Component Uncategorized → Template system
- Property Owner changed from to
-
Ticket #4446 – Description
initial v2 1 The {% spaceless %} filter is not filtering out carriage returns in sub-templates under certain conditions. 1 2 {{{ 2 the {% spaceless %} filter is not filtering out carriage returns in sub-templates under certain conditions.3 4 3 {% spaceless %} 5 4 {% include "something.html" %} 6 5 {% endspaceless %} 7 6 }}} 8 7 and in something.html 8 {{{ 9 9 {% if test %} 10 10 {% load humanize %} 11 11 <a name="thing"></a> 12 12 }}} 13 13 14 14 will leave one carriage return for each block tag. 15 15 A valid work around is. 16 16 {{{ 17 17 <a name="thing"></a> 18 18 {% if test %} 19 19 {% load humanize %} 20 20 }}} 21 21 Once valid html is before the tags, the carriage returns are no longer generated. 22 }}}