Closed tolypash closed 10 months ago
There is an issue where when I use textLine method, it trims the beginning of the text. I tracked this issue down to the wordwrapjs package. This is an issue since I want to be able to prepend spaces to some of my text lines.
textLine
For example:
printing.textLine(charsPerLine, { left: "1 Burger", right: "€ 5.00" }) printing.textLine(charsPerLine, { left: " + Cheese", right: "€ 0.10", })
This would print:
1 Burger € 5.00 + Cheese € 0.10
When it should have printed:
By providing noTrim option to wordwrapjs, this issue is resolved.
noTrim
@tr3v3r
2.6.0 is available in npm
cc: @tolypash
There is an issue where when I use
textLine
method, it trims the beginning of the text. I tracked this issue down to the wordwrapjs package. This is an issue since I want to be able to prepend spaces to some of my text lines.For example:
This would print:
When it should have printed:
By providing
noTrim
option to wordwrapjs, this issue is resolved.