From 6219286df93a19abe42f17f97da92984e8b66852 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 4 Jan 2011 00:17:08 +0100 Subject: [PATCH] Use XML-entity-replace error handling in HTML output files. Fixes test_build.test_htmlhelp. --- sphinx/builders/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 3fb4557f7..cab12afa6 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -714,7 +714,7 @@ class StandaloneHTMLBuilder(Builder): # outfilename's path is in general different from self.outdir ensuredir(path.dirname(outfilename)) try: - f = codecs.open(outfilename, 'w', encoding) + f = codecs.open(outfilename, 'w', encoding, 'xmlcharrefreplace') try: f.write(output) finally: