Skip to content

Commit 202593a

Browse files
authored
Merge pull request #232 from pookong/do_not_skip_empty_shared_string
do not skip empty string in shared strings so that indexes match
2 parents d20efed + 388ec40 commit 202593a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xlsx/xform/strings/shared-string-xform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ utils.inherits(SharedStringXform, BaseXform, {
6060
model.richText.forEach(function(text) {
6161
r.render(xmlStream, text);
6262
});
63-
} else if (model) {
63+
} else if (model !== undefined && model !== null) {
6464
this.map.t.render(xmlStream, model);
6565
}
6666
xmlStream.closeNode();

0 commit comments

Comments
 (0)