Skip to content

Commit

Permalink
Remove trimming from lines being rendered.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian-Howard-R20 committed Oct 19, 2023
1 parent b4e59bc commit b0d11ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/canvas-txt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ function drawText(

//print all lines of text
textArray.forEach((txtline) => {
txtline = txtline.trim()
ctx.fillText(txtline, textAnchor, txtY)
if (strokeColor && strokeWidth) {
ctx.strokeText(txtline, textAnchor, txtY)
Expand Down

0 comments on commit b0d11ec

Please sign in to comment.