Merge pull request #6267 from tk0miya/6263_HTML5Translator_crashed

Fix #6263: html: HTML5Translator crashed with invalid field node
This commit is contained in:
Takeshi KOMIYA 2019-04-07 18:40:06 +09:00 committed by GitHub
commit 7b2dd80495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Bugs fixed
* #6245: circular import error on importing SerializingHTMLBuilder * #6245: circular import error on importing SerializingHTMLBuilder
* #6243: LaTeX: 'releasename' setting for latex_elements is ignored * #6243: LaTeX: 'releasename' setting for latex_elements is ignored
* #6244: html: Search function is broken with 3rd party themes * #6244: html: Search function is broken with 3rd party themes
* #6263: html: HTML5Translator crashed with invalid field node
* #6262: html theme: The style of field lists has changed in bizstyle theme * #6262: html theme: The style of field lists has changed in bizstyle theme
Testing Testing

View File

@ -68,6 +68,7 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
self.param_separator = '' self.param_separator = ''
self.optional_param_level = 0 self.optional_param_level = 0
self._table_row_index = 0 self._table_row_index = 0
self._fieldlist_row_index = 0
self.required_params_left = 0 self.required_params_left = 0
def visit_start_of_file(self, node): def visit_start_of_file(self, node):