mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use XML-entity-replace error handling in HTML output files. Fixes test_build.test_htmlhelp.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user