1. Ronny Pfannschmidt
  2. lodgeit

Commits

mitsuhiko  committed a829543

Quickfix for creole.

  • Participants
  • Parent commits 0388874
  • Branches lodgeit

Comments (0)

Files changed (1)

File lodgeit/lib/highlighting.py

View file
 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):