Commits

Anonymous committed a829543

Quickfix for creole.

Comments (0)

Files changed (1)

lodgeit/lib/highlighting.py

 def format_creole(code):
     """Format creole syntax."""
     from creoleparser import creole2html
-    return u'<div class="wikitext">%s</div>' % creole2html(code)
+    rv = creole2html(code)
+    if isinstance(rv, str):
+        rv = rv.decode('utf-8')
+    return u'<div class="wikitext">%s</div>' % rv
 
 
 def format_csv(code):