diff options
| author | Michael Williamson <mike@zwobble.org> | 2019-03-17 20:42:08 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2019-03-17 20:42:08 +0000 |
| commit | 82f8b03022950069c4ee2239e9fa4368fbecd661 (patch) | |
| tree | 3dc42ac0e7ef034cd96d1f2e49dac91deaa757e1 /lib/docx/numbering-xml.js | |
| parent | 5738d470f9997ae7037748e739bc936ca48ee71e (diff) | |
Pass styles into readNumberingXml
Diffstat (limited to 'lib/docx/numbering-xml.js')
| -rw-r--r-- | lib/docx/numbering-xml.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/docx/numbering-xml.js b/lib/docx/numbering-xml.js index 24fb7e4..028bf01 100644 --- a/lib/docx/numbering-xml.js +++ b/lib/docx/numbering-xml.js @@ -15,7 +15,11 @@ function Numbering(nums, abstractNums) { }; } -function readNumberingXml(root) { +function readNumberingXml(root, options) { + if (!options || !options.styles) { + throw new Error("styles is missing"); + } + var abstractNums = readAbstractNums(root); var nums = readNums(root, abstractNums); return new Numbering(nums, abstractNums); |
