aboutsummaryrefslogtreecommitdiff
path: root/lib/docx/footnotes-reader.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/docx/footnotes-reader.js')
-rw-r--r--lib/docx/footnotes-reader.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/docx/footnotes-reader.js b/lib/docx/footnotes-reader.js
deleted file mode 100644
index aea623a..0000000
--- a/lib/docx/footnotes-reader.js
+++ /dev/null
@@ -1,18 +0,0 @@
-exports.readFootnotesXml = readFootnotesXml;
-
-function readFootnotesXml(xml) {
- return xml.root.getElementsByTagName("w:footnote")
- .filter(isFootnoteElement)
- .map(readFootnoteElement);
-}
-
-function isFootnoteElement(element) {
- var type = element.attributes["w:type"];
- return type !== "continuationSeparator" && type !== "separator";
-}
-
-function readFootnoteElement(footnoteElement) {
- var id = footnoteElement.attributes["w:id"];
- var body = footnoteElement.children;
- return {id: id, body: body};
-}