From 85cc3f93c01312a907fd017d34bc2e5542cac670 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 14 Dec 2013 17:33:13 +0000 Subject: Plumbing to get full stack working --- mammoth/style_reader/html_path_reader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mammoth/style_reader/html_path_reader.py') 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? -- cgit v1.2.3