From 8059e5f4d09fb14f2109cedb63ae0d353537e6b3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 14:15:27 +0100 Subject: Add HTML path for ignoring elements --- mammoth/html_paths.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mammoth/html_paths.py') 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 [] -- cgit v1.2.3