aboutsummaryrefslogtreecommitdiff
path: root/mammoth/html_paths.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 22:10:12 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 22:10:12 +0000
commit7a7d1a88427af1e87688ff6dd8637af9c7c1681a (patch)
tree7b18b81fe41df01407a0d08ec6a0bd78f1473926 /mammoth/html_paths.py
parent1b5c951358623ddb97a237efab72479d9dd9c4ca (diff)
Add parsing for separators
Diffstat (limited to 'mammoth/html_paths.py')
-rw-r--r--mammoth/html_paths.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mammoth/html_paths.py b/mammoth/html_paths.py
index e201fef..e4f6c31 100644
--- a/mammoth/html_paths.py
+++ b/mammoth/html_paths.py
@@ -7,12 +7,12 @@ def path(elements):
return HtmlPath(elements)
-def element(names, class_names=None, fresh=None):
+def element(names, class_names=None, fresh=None, separator=None):
if class_names is None:
class_names = []
if fresh is None:
fresh = False
- return HtmlPathElement(names, class_names, fresh)
+ return HtmlPathElement(names, class_names, fresh, separator=separator)
@cobble.data
@@ -32,6 +32,7 @@ class HtmlPathElement(object):
names = cobble.field()
class_names = cobble.field()
fresh = cobble.field()
+ separator = cobble.field()
def wrap(self, generate_nodes):
return self.wrap_nodes(generate_nodes())