aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-09-02 23:19:53 +0100
committerMichael Williamson <mike@zwobble.org>2016-09-02 23:20:42 +0100
commit9d44fe567d20c5a82c4c2a01673325a31794745b (patch)
treebd11998f60330017640c56ac0089c6db4487016d /lib
parent6e9740534d364c35b82428cf9f1c2bef970d0f28 (diff)
Use alt text title if description is missing
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 519a50b..732a8d2 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -322,7 +322,7 @@ function BodyReader(options) {
}
function isBlank(value) {
- return /^\s*$/.test(value);
+ return value == null || /^\s*$/.test(value);
}
function findBlipImageFile(blip) {