diff options
Diffstat (limited to 'sphinx/builders/qthelp.py')
-rw-r--r-- | sphinx/builders/qthelp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/qthelp.py b/sphinx/builders/qthelp.py index bc421dcf5..bd02b3481 100644 --- a/sphinx/builders/qthelp.py +++ b/sphinx/builders/qthelp.py @@ -119,7 +119,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder): for (key, group) in index: for title, (refs, subitems, key_) in group: keywords.extend(self.build_keywords(title, refs, subitems)) - keywords = u'\n'.join(keywords) # type: ignore + keywords = '\n'.join(keywords) # type: ignore # it seems that the "namespace" may not contain non-alphanumeric # characters, and more than one successive dot, or leading/trailing @@ -192,7 +192,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder): link = node['refuri'] title = html.escape(node.astext()).replace('"', '"') item = section_template % {'title': title, 'ref': link} - item = u' ' * 4 * indentlevel + item + item = ' ' * 4 * indentlevel + item parts.append(item.encode('ascii', 'xmlcharrefreplace').decode()) elif isinstance(node, nodes.bullet_list): for subnode in node: |