askbot.middleware.spaceless

Middleware that strips whitespace between html tags copied from David Cramer’s blog http://www.davidcramer.net/code/369/spaceless-html-in-django.html

class askbot.middleware.spaceless.SpacelessMiddleware

Bases: object

process_response(request, response)

strips whitespace from all documents whose content type is text/html

This Page