Skip to content

Commit

Permalink
Infinite loop when first word is longer than line
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Sep 12, 2014
1 parent 95b149e commit 838afe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/line_wrapper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class LineWrapper extends EventEmitter
@columns = options.columns or 1
@columnGap = options.columnGap ? 18 # 1/4 inch
@lineWidth = (options.width - (@columnGap * (@columns - 1))) / @columns
@spaceLeft = @lineWidth
@startX = @document.x
@startY = @document.y
@column = 1
Expand Down

0 comments on commit 838afe1

Please sign in to comment.