diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-14 17:33:13 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-14 17:33:13 +0000 |
| commit | 85cc3f93c01312a907fd017d34bc2e5542cac670 (patch) | |
| tree | 6319244994842c813c73005de7cb971fbfe99061 /mammoth/style_reader/html_path_reader.py | |
| parent | f5595b78f59d3f3a04c4e83702114dc2704f808a (diff) | |
Plumbing to get full stack working
Diffstat (limited to 'mammoth/style_reader/html_path_reader.py')
| -rw-r--r-- | mammoth/style_reader/html_path_reader.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/style_reader/html_path_reader.py b/mammoth/style_reader/html_path_reader.py index 0f1331b..b508f59 100644 --- a/mammoth/style_reader/html_path_reader.py +++ b/mammoth/style_reader/html_path_reader.py @@ -49,18 +49,18 @@ def _repeated_children_with_separator(node, has_whitespace): yield node.children[0] if has_whitespace: - sequence_node_index = 2 + sequence_node_index = 3 else: sequence_node_index = 1 - sequence_node = node.children[sequence_node_index] + sequence_node = node.children[1] for child in sequence_node.children: yield child.children[sequence_node_index] grammar_text = r""" -html_path = element whitespace* (">" whitespace* element)* +html_path = element (whitespace* ">" whitespace* element)* element = tag_names class_name* fresh? |
