[Checkins] SVN: grok/trunk/doc/grok2html.py Bugfix: the "grok2html"
command would choke on restructured text
Brandon Rhodes
brandon at rhodesmill.org
Tue Sep 18 08:20:51 EDT 2007
Log message for revision 79737:
Bugfix: the "grok2html" command would choke on restructured text
that contained Unicode characters because, after receiving back a
raw HTML bytestream as a str() from docutils, it failed to re-encode
the bytes into a Unicode string as required for Zope to digest it.
Changed:
U grok/trunk/doc/grok2html.py
-=-
Modified: grok/trunk/doc/grok2html.py
===================================================================
--- grok/trunk/doc/grok2html.py 2007-09-18 12:07:02 UTC (rev 79736)
+++ grok/trunk/doc/grok2html.py 2007-09-18 12:20:50 UTC (rev 79737)
@@ -35,6 +35,7 @@
self.content,
writer=writer,
settings_overrides=settings_overrides,)
+ codecs.decode(html, 'utf_8')
return html
class RestFile(object):
More information about the Checkins
mailing list