diff options
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 + } }; } |
