From 68047ef381cb08cf43e5a30ca9dd6e40ccde8cdd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 1 Dec 2013 01:15:25 +0000 Subject: Add basic conversion to HTML --- mammoth/documents.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mammoth/documents.py (limited to 'mammoth/documents.py') diff --git a/mammoth/documents.py b/mammoth/documents.py new file mode 100644 index 0000000..50b5e65 --- /dev/null +++ b/mammoth/documents.py @@ -0,0 +1,7 @@ +import collections + + +Document = collections.namedtuple("Document", ["children"]) +Paragraph = collections.namedtuple("Paragraph", ["children"]) +Run = collections.namedtuple("Run", ["children"]) +Text = collections.namedtuple("Text", ["value"]) -- cgit v1.2.3