Changes between Version 24 and Version 25 of ContributedMiddleware
- 08/23/2006 12:42:55 AM (10 years ago)
v24 v25 32 32 33 33 34 == = [http://code.djangoproject.com/attachment/wiki/ContributedMiddleware/StripWhitespaceMiddleware.py Strip Whitespace Middleware] by Doug Van Horn === 34 ==== 35 35 36 36 Removes extra whitespace from response content. It's kind of nice for removing extra line breaks, but it also removes leading spaces. Probably not too important for most of us, but for the bandwidth conscious it might be helpful. If you would like to keep your indentions intact, then use `'\s*\n+'` as the regular expression string instead of `'\s*\n+\s*'`.