diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index f600e8bd2..79b2fcc55 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -463,15 +463,19 @@ class HTMLTranslator(BaseTranslator): def depart_title(self, node): close_tag = self.context[-1] - if self.add_permalinks and self.builder.add_permalinks and \ - (close_tag.startswith('\u00B6' % - _('Permalink to this headline')) + if close_tag.startswith('\u00B6' % + _('Permalink to this headline')) + elif close_tag.startswith('\u00B6' % + _('Permalink to this headline')) + BaseTranslator.depart_title(self, node) def unknown_visit(self, node):