aboutsummaryrefslogtreecommitdiff
path: root/mammoth/html_paths.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-07-03 14:15:27 +0100
committerMichael Williamson <mike@zwobble.org>2016-07-03 14:15:27 +0100
commit8059e5f4d09fb14f2109cedb63ae0d353537e6b3 (patch)
treec6eb6869e4bd0bc3d9a84fac0ecd54f17ae34401 /mammoth/html_paths.py
parentf5563e5a26ebcd51cc73f3cffbd51cff3c4d4ca7 (diff)
Add HTML path for ignoring elements
Diffstat (limited to 'mammoth/html_paths.py')
-rw-r--r--mammoth/html_paths.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mammoth/html_paths.py b/mammoth/html_paths.py
index 487f278..53580ed 100644
--- a/mammoth/html_paths.py
+++ b/mammoth/html_paths.py
@@ -49,3 +49,8 @@ class HtmlPathElement(object):
return [element]
empty = path([])
+
+
+class ignore(object):
+ def wrap(self, generate_nodes):
+ return []