# HG changeset patch # User Paul Boddie # Date 1396561076 -7200 # Node ID 4233e4fa5ee61111c0ada6a076e6eabcd1f68da1 # Parent bb86e3e374a3845d20c11bf7193feb6d75d876ed Introduced preformatted text element usage for the HTML output. diff -r bb86e3e374a3 -r 4233e4fa5ee6 parsers/text_plain.py --- a/parsers/text_plain.py Thu Apr 03 23:06:09 2014 +0200 +++ b/parsers/text_plain.py Thu Apr 03 23:37:56 2014 +0200 @@ -46,7 +46,10 @@ using the request. """ - (write or self.request.write)(fmt.text(self.raw)) + write = write or self.request.write + write(fmt.preformatted(1)) + write(fmt.text(self.raw.expandtabs())) + write(fmt.preformatted(0)) # Extra API methods.