aboutsummaryrefslogtreecommitdiff
path: root/lib/docx-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-01 12:39:38 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-01 12:39:38 +0100
commitf397a47dd2bb9e294ff86d4a4747234b85887819 (patch)
tree694effb34d5ad34c6a9c809b3d01d7ab286781bc /lib/docx-reader.js
parente8e2652dac7f2f36158136c3c30072c801d2b1d2 (diff)
Read bold and italic properties on runs
Diffstat (limited to 'lib/docx-reader.js')
-rw-r--r--lib/docx-reader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/docx-reader.js b/lib/docx-reader.js
index d30a822..44b3393 100644
--- a/lib/docx-reader.js
+++ b/lib/docx-reader.js
@@ -90,6 +90,8 @@ var xmlElementReaders = {
if (styleElement) {
properties.styleName = styleElement.attributes["w:val"];
}
+ properties.isBold = !!element.first("w:b");
+ properties.isItalic = !!element.first("w:i");
return properties;
},