Commits

Georg Brandl  committed be5f867

Use XML-entity-replace error handling in HTML output files. Fixes test_build.test_htmlhelp.

  • Participants
  • Parent commits 5f5617e

Comments (0)

Files changed (1)

File sphinx/builders/html.py

         # 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: