Fix ASCII encoding error while using print u'\u010c' non-ASCII char and similar.
Gasper Zejn zejn@kiberpipa.org
Fri, 19 Mar 2010 19:47:27 +0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
lib/github/commands/rest2html
→
lib/github/commands/rest2html
@@ -42,7 +42,8 @@ text = sys.stdin.read()
parts = publish_parts(text, writer=Writer(), settings_overrides=SETTINGS) if 'html_body' in parts: - return parts['html_body'] + html = parts['html_body'] + return html.encode('utf-8') return '' if __name__ == '__main__':