We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55efa4a commit 4daea2aCopy full SHA for 4daea2a
1 file changed
ImageScript.js
@@ -1566,7 +1566,7 @@ class TextLayout {
1566
if (!['top', 'middle', 'bottom'].includes(this.horizontalAlign))
1567
throw new RangeError('Invalid horizontalAlign');
1568
1569
- this.wrapHardBreaks = wrapHardBreaks || true;
+ this.wrapHardBreaks = typeof wrapHardBreaks === 'undefined' ? true : wrapHardBreaks;
1570
if (typeof this.wrapHardBreaks !== 'boolean')
1571
throw new TypeError('Invalid wrapHardBreaks');
1572
}
0 commit comments