From 05d9ac1031dcf83c6d99fa2218ee45a6d7b4d746 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 12:16:50 +0100 Subject: Add reader for comments.xml --- mammoth/documents.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mammoth/documents.py') diff --git a/mammoth/documents.py b/mammoth/documents.py index 36e3458..ea376d4 100644 --- a/mammoth/documents.py +++ b/mammoth/documents.py @@ -173,4 +173,11 @@ class NoteReference(Element): note_reference = NoteReference +@cobble.data +class Comment(object): + comment_id = cobble.field() + body = cobble.field() + +comment = Comment + ElementVisitor = cobble.visitor(Element) -- cgit v1.2.3