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
This commit is contained in:
Lennart Regebro
2017-10-12 10:41:55 -04:00
parent c9bb1b2743
commit 2b1c1e657a

View File

@@ -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):