From 9d44fe567d20c5a82c4c2a01673325a31794745b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 2 Sep 2016 23:19:53 +0100 Subject: Use alt text title if description is missing --- lib/docx/body-reader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3