aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-07-28 10:02:38 -0400
committerWaylan Limberg <waylan@gmail.com>2011-07-28 10:02:38 -0400
commit80f6ac599f79546512b522566cb421acea1aca19 (patch)
treeb60ff3b1680a8d79e74fe87d9f12099fc970e089 /tests/__init__.py
parent5ad27f85db3e5c0a0e6f05ab099bfbfc8b0d0dd5 (diff)
downloadmarkdown-80f6ac599f79546512b522566cb421acea1aca19.tar.gz
markdown-80f6ac599f79546512b522566cb421acea1aca19.tar.bz2
markdown-80f6ac599f79546512b522566cb421acea1aca19.zip
All internal encoding of output now uses the 'xmlcharrefreplace' error handler. Also added a note to the docs. Anyone doing their own encoding of output should be as well.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 8fbc5d9..b274b1e 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -51,7 +51,7 @@ def get_args(file, config):
def normalize(text):
""" Normalize whitespace for a string of html using tidy. """
- return str(tidy.parseString(text.encode('utf-8'),
+ return str(tidy.parseString(text.encode('utf-8', errors='xmlcharrefreplace'),
drop_empty_paras=0,
fix_backslash=0,
fix_bad_comments=0,