Skip to content

Commit

Permalink
Instance var -> class var
Browse files Browse the repository at this point in the history
  • Loading branch information
ebolyen committed Nov 22, 2021
1 parent fcbdd81 commit c947bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx/writers/html5.py
Expand Up @@ -56,6 +56,10 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
"""

builder: "StandaloneHTMLBuilder" = None
# Override docutils.writers.html5_polyglot:HTMLTranslator
# otherwise, nodes like <inline classes="s">...</inline> will be
# converted to <s>...</s> by `visit_inline`.
self.supported_inline_tags = set()

def __init__(self, document: nodes.document, builder: Builder) -> None:
super().__init__(document, builder)
Expand All @@ -70,10 +74,6 @@ def __init__(self, document: nodes.document, builder: Builder) -> None:
self._table_row_indices = [0]
self._fieldlist_row_indices = [0]
self.required_params_left = 0
# Override docutils.writers.html5_polyglot:HTMLTranslator
# otherwise, nodes like <inline classes="s">...</inline> will be
# converted to <s>...</s> by `visit_inline`.
self.supported_inline_tags = set()

def visit_start_of_file(self, node: Element) -> None:
# only occurs in the single-file builder
Expand Down

0 comments on commit c947bbf

Please sign in to comment.