aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
blob: 08e3bba08890cc9ca741d1670db94f1ab45f671b (plain)
1
2
3
4
5
6
7
8
9
10
11
import collections


def paragraph(children, style_name=None, numbering=None):
    return Paragraph(children, style_name, numbering)


Document = collections.namedtuple("Document", ["children"])
Paragraph = collections.namedtuple("Paragraph", ["children", "style_name", "numbering"])
Run = collections.namedtuple("Run", ["children"])
Text = collections.namedtuple("Text", ["value"])