2014-04-03 | Paul Boddie | raw files shortlog changelog graph | Introduced preformatted text element usage for the HTML output. | |
parsers/text_plain.py (file) |
1.1 --- a/parsers/text_plain.py Thu Apr 03 23:06:09 2014 +0200 1.2 +++ b/parsers/text_plain.py Thu Apr 03 23:37:56 2014 +0200 1.3 @@ -46,7 +46,10 @@ 1.4 using the request. 1.5 """ 1.6 1.7 - (write or self.request.write)(fmt.text(self.raw)) 1.8 + write = write or self.request.write 1.9 + write(fmt.preformatted(1)) 1.10 + write(fmt.text(self.raw.expandtabs())) 1.11 + write(fmt.preformatted(0)) 1.12 1.13 # Extra API methods. 1.14