diff --git a/ts/output/common/Wrappers/mpadded.ts b/ts/output/common/Wrappers/mpadded.ts index 35eff53ca..acbc5a6b0 100644 --- a/ts/output/common/Wrappers/mpadded.ts +++ b/ts/output/common/Wrappers/mpadded.ts @@ -173,7 +173,7 @@ export function CommonMpaddedMixin< { get containerWidth(): number { const attributes = this.node.attributes; - const w = attributes.get('width') as string; + const w = attributes.get('width').toString(); if ( !w.match(/^[-+]|%$/) && attributes.get('data-overflow') === 'linebreak'