Keep errors, elements and comments consistent (#2340)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Lipis
2020-11-05 19:06:18 +02:00
committed by GitHub
parent 2a20c44338
commit 5d295415db
22 changed files with 96 additions and 98 deletions

View File

@ -94,7 +94,7 @@ export const measureText = (text: string, font: FontString) => {
line.innerText = text
.split("\n")
// replace empty lines with single space because leading/trailing empty
// lines would be stripped from computation
// lines would be stripped from computation
.map((x) => x || " ")
.join("\n");
const width = line.offsetWidth;