blob: c5ea746589c874b39ec9ce9ddd55c1402b7f636e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#~ from .. import documents
#~ from .. import results
from .. import lists
#~ from .xmlparser import node_types
#~
def read_footnotes_xml_element(element):
return lists.map(
_read_footnote_element,
element.find_children("w:footnote"),
)
def _read_footnote_element(element):
return FootnoteElement(element.attributes["w:id"], element.children)
class FootnoteElement(object):
def __init__(self, id, body):
self.id = id
self.body = body
|