From 3ed30fd8bc749d3c8009b3fd9e8ce125af5ee441 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 25 Feb 2016 19:07:27 +0000 Subject: Read italic document matcher --- mammoth/document_matchers.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mammoth/document_matchers.py') diff --git a/mammoth/document_matchers.py b/mammoth/document_matchers.py index 1116a07..6f40318 100644 --- a/mammoth/document_matchers.py +++ b/mammoth/document_matchers.py @@ -17,13 +17,17 @@ RunMatcher = collections.namedtuple("RunMatcher", ["style_id", "style_name"]) RunMatcher.element_type = "run" +class bold(object): + element_type = "bold" + + +class italic(object): + element_type = "italic" + + class underline(object): element_type = "underline" class strikethrough(object): element_type = "strikethrough" - - -class bold(object): - element_type = "bold" -- cgit v1.2.3