diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-05-21 11:55:03 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-05-21 11:55:03 +0100 |
| commit | 0d60c148c8fdb8168dcc6402021639572243f9cd (patch) | |
| tree | 5ae6df130691c372858e5b43c1cef8b899aebd7e /lib/documents.js | |
| parent | 2e234c7d6ef381423b4f7d0ea5dac92dfce58a6b (diff) | |
Don't read run properties as document element
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
