File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ function calculate(doc: DocHandler, table: Table) {
78
78
const padding = cell . padding ( 'horizontal' )
79
79
cell . contentWidth = getStringWidth ( cell . text , cell . styles , doc ) + padding
80
80
81
- // Using / [^\S\u00A0]+/ instead of \s ensures that we split the text on
82
- // all whitespace except non-breaking spaces (\u00A0). We need to
83
- // preserve them in the split process to ensure correct word separation
84
- // and width calculation.
81
+ // Using [^\S\u00A0] instead of \s ensures that we split the text on all
82
+ // whitespace except non-breaking spaces (\u00A0). We need to preserve
83
+ // them in the split process to ensure correct word separation and width
84
+ // calculation.
85
85
const longestWordWidth = getStringWidth (
86
86
cell . text . join ( ' ' ) . split ( / [ ^ \S \u00A0 ] + / ) ,
87
87
cell . styles ,
You can’t perform that action at this time.
0 commit comments