The intent is primarily to remove extra non-meaningful lines and indents from the response. As an example:
<ol> {% for foo in foo_list %} <li>{{ foo }}</li> {% endfor %} </ol> yields before middleware: <ol> <li>biz</li> <li>baz</li> <li>buz</li> </ol> and after middleware: <ol> <li>biz</li> <li>baz</li> <li>buz</li> </ol> It's nothing special, and if I've made and error with the RE please let me know (I'm by no means an expert). Regarding leading and trailing whitespace (that is, before and after the response content), I think it /mostly/ works, truncating everything down to 1 extra line on either side of the response. My guess would be someone more clever than I am could come up with the appropriate RE to chomp those two extra characters off, too. Hopefully that makes the intent more clear. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---