Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #20 don't re-encode when appending to dom

When and where various python stdlib are going to enforce unicode
is sometimes a bit confusing.
  • Loading branch information...
commit 35fc60a60b1f927b2475287adac9ed2012bb0aee 1 parent d07859d
@cdent cdent authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  twikified.py
View
2  twikified.py
@@ -177,7 +177,7 @@ def render(tiddler, environ, seen_titles=None):
interior_content = render(interior_tiddler, environ,
seen_titles)
interior_dom = parser.parse('<div>' +
- interior_content.encode('utf-8', 'replace')
+ interior_content
+ '</div>')
span.appendChild(interior_dom.getElementsByTagName('div')[0])
Please sign in to comment.
Something went wrong with that request. Please try again.