Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a878e81
)
Properly use a BytesIO in XHTML outputter.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 13 May 2012 02:15:44 +0000
(
04:15
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 13 May 2012 02:15:44 +0000
(
04:15
+0200)
wrw/sp/xhtml.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/sp/xhtml.py
b/wrw/sp/xhtml.py
index
7058138
..
02e8dd6
100644
(file)
--- a/
wrw/sp/xhtml.py
+++ b/
wrw/sp/xhtml.py
@@
-43,7
+43,7
@@
class htmlindenter(util.indenter, htmlformatter):
def forreq(req, tree):
# XXX: Use proper Content-Type for clients accepting it.
req.ohead["Content-Type"] = "text/html; charset=utf-8"
- buf = io.
String
IO()
+ buf = io.
Bytes
IO()
htmlindenter.output(buf, tree, doctype=(doctype, dtd), charset="utf-8")
return [buf.getvalue()]