Commits

Antonio Valentino committed 4c475e5

Escape keyword entries in qthelp

  • Participants
  • Parent commits 1827ee4

Comments (0)

Files changed (1)

File sphinx/builders/qthelp.py

                 if anchor == "":
                     continue
                 uri = self.get_target_uri(docname) + '#' + anchor
-                item = ' '*12 + '<keyword id="%s" ref="%s"/>' % (name, uri)
+                item = ' '*12 + '<keyword id="%s" ref="%s"/>' % (escape(name),
+                                                                 escape(uri))
                 item.encode('ascii', 'xmlcharrefreplace')
                 keywords.append(item)