diff options
| author | Lennart Regebro <regebro@gmail.com> | 2017-10-12 10:41:55 -0400 |
|---|---|---|
| committer | Lennart Regebro <regebro@gmail.com> | 2017-10-15 06:08:43 -0400 |
| commit | 2b1c1e657a9e231a3fdb4f21578e7b2d520fc64f (patch) | |
| tree | 4bf86232d6897ab8b897f5da55cd8c552d464b1d | |
| parent | c9bb1b2743e9ae492d43237be17b0176cca2ca68 (diff) | |
| download | sphinx-git-2b1c1e657a9e231a3fdb4f21578e7b2d520fc64f.tar.gz | |
Initialize _fieldlist_row_index just like _table_row_index
visit_field can be called before visit_field_list if the field list is at the beginning of the document.
By initializing _fieldlist_row_index in __init__ this is supported.
Closes #4145
| -rw-r--r-- | sphinx/writers/html.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index 6dd8bafe5..8d02793e3 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -89,6 +89,7 @@ class HTMLTranslator(BaseTranslator): self.param_separator = '' self.optional_param_level = 0 self._table_row_index = 0 + self._fieldlist_row_index = 0 self.required_params_left = 0 def visit_start_of_file(self, node): |
