aboutsummaryrefslogtreecommitdiff
path: root/mammoth/document_matchers.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-25 19:07:27 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-25 19:07:27 +0000
commit3ed30fd8bc749d3c8009b3fd9e8ce125af5ee441 (patch)
tree6460c7e1f2e9940a6ef1e84a2626acfd8ae5aff0 /mammoth/document_matchers.py
parent17ba20787c2637c65df0c02c6ffbd71a318e451a (diff)
Read italic document matcher
Diffstat (limited to 'mammoth/document_matchers.py')
-rw-r--r--mammoth/document_matchers.py12
1 files changed, 8 insertions, 4 deletions
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"