Skip to content

Commit

Permalink
fix(TextMetrics): Remove unecessary trimming from fast text measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentriemer committed Sep 16, 2018
1 parent 171d9c4 commit fd816e5
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ export class TextMetrics {
* method
*/
static addLine(line: string, newLine: boolean = true) {
line = TextMetrics.trimRight(line);

line = newLine ? `${line}\n` : line;

return line;
}

Expand Down

0 comments on commit fd816e5

Please sign in to comment.