From 7b8e6250f4a088e3bfc16403ae303406b9134726 Mon Sep 17 00:00:00 2001 From: privatmamtora Date: Thu, 23 Nov 2017 14:33:23 -0500 Subject: Parse paragraph indents --- lib/documents.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/documents.js') 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 + } }; } -- cgit v1.2.3