From 0d60c148c8fdb8168dcc6402021639572243f9cd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 21 May 2023 11:55:03 +0100 Subject: Don't read run properties as document element --- lib/documents.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index d29ad1b..67e98af 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -55,12 +55,12 @@ function Run(children, properties) { children: children, styleId: properties.styleId || null, styleName: properties.styleName || null, - isBold: properties.isBold, - isUnderline: properties.isUnderline, - isItalic: properties.isItalic, - isStrikethrough: properties.isStrikethrough, - isAllCaps: properties.isAllCaps, - isSmallCaps: properties.isSmallCaps, + isBold: !!properties.isBold, + isUnderline: !!properties.isUnderline, + isItalic: !!properties.isItalic, + isStrikethrough: !!properties.isStrikethrough, + isAllCaps: !!properties.isAllCaps, + isSmallCaps: !!properties.isSmallCaps, verticalAlignment: properties.verticalAlignment || verticalAlignment.baseline, font: properties.font || null, fontSize: properties.fontSize || null -- cgit v1.2.3