django-debug-toolbar/django-debug-toolbar — pull request #371 by anothergituser (2013-04-04 15:12:38+00:00)
Title: Indentation for logging message when the dump is an object

When you want to pretty print your object, instead of doing logging.debug(myobj) you can do
logging.debug(pprint.pformat(myobj)). One problem, pprint uses a space char to indent and that won't work in html, so i added a filter called nbspindent that replaces the spaces created by pprint with \ so it's proper indented.