Skip to content

Commit

Permalink
Fix for last commit (negation of word-level formatting)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcbrook committed Sep 7, 2020
1 parent 1c3109c commit f270d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/pptxgen.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ function genXmlTextBody(slideObj) {
Object.entries(opts).forEach(function (_a) {
var key = _a[0], val = _a[1];
// NOTE: This loop will pick up unecessary keys (`x`, etc.), but it doesnt hurt anything
if (key !== 'bullet' && !textObj.options[key])
if (key !== 'bullet' && !textObj.options.hasOwnProperty(key))
textObj.options[key] = val;
});
// D: Add formatted textrun
Expand Down

0 comments on commit f270d4a

Please # to comment.