Commits

Waylan Limberg  committed 87ceeff

Fixed UnicodeDecodeErrors from some of the php & pl tests when normalizing whitespace with tidy.

  • Participants
  • Parent commits 180918a

Comments (0)

Files changed (2)

File markdown/tests/__init__.py

 
 def normalize(text):
     """ Normalize whitespace for a string of html using tidy. """
-    return unicode(tidy.parseString(text.encode('utf-8'), 
+    return str(tidy.parseString(text.encode('utf-8'), 
                                     drop_empty_paras=0,
                                     fix_backslash=0,
                                     fix_bad_comments=0,
                                     quote_ampersand=0,
                                     show_body_only=1,
                                     char_encoding='utf8',
-                                    newline='LF'))
+                                    newline='LF')).decode('string-escape')
 
 class CheckSyntax(object):
     def __init__(self, description=None):

File markdown/tests/pl/Tests_2004/test.cfg

 #skip=1
 
 [Yuri-Footnotes]
+extensions=footnotes
 skip=1