Commits

Georg Brandl committed 656dcc5

Closes #693: Fix double encoding done when writing HTMLHelp .hhk files.

Comments (0)

Files changed (2)

 Release 1.0.8 (in development)
 ==============================
 
+* #693: Fix double encoding done when writing HTMLHelp .hhk files.
+
 * #647: Do not apply SmartyPants in parsed-literal blocks.
 
 

sphinx/builders/htmlhelp.py

             def write_index(title, refs, subitems):
                 def write_param(name, value):
                     item = '    <param name="%s" value="%s">\n' % (name, value)
-                    f.write(item.encode(self.encoding, 'xmlcharrefreplace'))
+                    f.write(item)
                 title = cgi.escape(title)
                 f.write('<LI> <OBJECT type="text/sitemap">\n')
                 write_param('Keyword', title)