aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorprivatmamtora <privat.mamtora@gmail.com>2017-11-23 14:33:23 -0500
committerMichael Williamson <mike@zwobble.org>2017-11-23 19:33:23 +0000
commit7b8e6250f4a088e3bfc16403ae303406b9134726 (patch)
tree56d509826a8ce80c04e6390c99194cc55fc68f56 /lib/documents.js
parente164d0ca975584ecdca37fe47ec44e4da6deab0b (diff)
Parse paragraph indents
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js9
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
+ }
};
}