Changes between Version 81 and Version 82 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
04/01/2007 12:31:12 AM (8 years ago)
Author:
adrian
Comment:

Added example for "spaceless" change

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v81 v82  
    99== Table of Contents ==
    1010
    11 Changes made after Django [source:/django/tags/releases/0.95 0.95]
     11Changes made after Django [source:/django/tags/releases/0.95 0.95]:
    1212 * August 2, 2006: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Databaseconstraintnameschanged Database constraint names changed]
    1313 * August 11, 2006: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Backslashescapingchanged Backslash escaping changed]
     
    1818 * March 14, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#EnforcingMySQLdbversion Enforcing MySQLdb version]
    1919
    20 Changes made after Django [source:/django/tags/releases/0.96 0.96]
     20Changes made after Django [source:/django/tags/releases/0.96 0.96]:
    2121
    2222 * March 31, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changedspacelesstemplatetagtoremoveallspaces Changed 'spaceless' template tag to remove all spaces]
     
    116116
    117117As of [4885], the {{{spaceless}}} template tag removes *all* spaces between HTML tags instead of preserving a single space.
     118
     119For example, for this template code:
     120{{{
     121{% spaceless %}
     122<p>
     123    <a href="foo/">Foo</a>
     124</p>
     125{% endspaceless %}
     126}}}
     127
     128The old output was this:
     129
     130{{{
     131<p> <a href="foo/">Foo</a> </p>
     132}}}
     133
     134The new output is this:
     135
     136{{{
     137<p><a href="foo/">Foo</a></p>
     138}}}
     139
     140As always, {{{spaceless}}} only affects space *between* HTML tags, not space within HTML tags or space in plain text.
Back to Top