diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:38:17 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-08 20:38:35 +0100 |
| commit | 7fca95f97fc56e043a4ac65b1f1187a340ffbce8 (patch) | |
| tree | e3647c1b4a90b16d5c7aeabaf7fa1e13a6b0e72a /lib | |
| parent | 2d74506d84e32c873a8fa34d0ab3ddaf6edc7ed1 (diff) | |
Default styleName to null
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/documents.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js index f1ce08b..986cd9c 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -10,7 +10,7 @@ function Paragraph(children, properties) { return { type: "paragraph", children: children, - styleName: properties.styleName + styleName: properties.styleName || null }; } @@ -19,7 +19,7 @@ function Run(children, properties) { return { type: "run", children: children, - styleName: properties.styleName, + styleName: properties.styleName || null, isBold: properties.isBold, isItalic: properties.isItalic }; |
