diff options
| author | privatmamtora <privat.mamtora@gmail.com> | 2017-11-23 14:33:23 -0500 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-11-23 19:33:23 +0000 |
| commit | 7b8e6250f4a088e3bfc16403ae303406b9134726 (patch) | |
| tree | 56d509826a8ce80c04e6390c99194cc55fc68f56 /lib/documents.js | |
| parent | e164d0ca975584ecdca37fe47ec44e4da6deab0b (diff) | |
Parse paragraph indents
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/documents.js b/lib/documents.js index 100d004..518db6e 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -31,13 +31,20 @@ function Document(children, options) { function Paragraph(children, properties) { properties = properties || {}; + var indent = properties.indent || {}; return { type: types.paragraph, children: children, styleId: properties.styleId || null, styleName: properties.styleName || null, numbering: properties.numbering || null, - alignment: properties.alignment || null + alignment: properties.alignment || null, + indent: { + start: indent.start || null, + end: indent.end || null, + firstLine: indent.firstLine || null, + hanging: indent.hanging || null + } }; } |
