Skip to content

Commit

Permalink
remove space at start of line
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Oct 2, 2016
1 parent 2254bfb commit 3affc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/textbox.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
charCount++;
realLineCount++;
}
else if (this.text[charCount] === ' ') {
else if (this.text[charCount] === ' ' && i > 0) {
// this case deals with space's that are removed from end of lines when wrapping
realLineCharCount++;
charCount++;
Expand Down

0 comments on commit 3affc90

Please sign in to comment.