From 7fca95f97fc56e043a4ac65b1f1187a340ffbce8 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 8 Apr 2013 20:38:17 +0100 Subject: Default styleName to null --- lib/documents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 }; -- cgit v1.2.3