Skip to content

Commit

Permalink
Merge pull request #309 from ef4/infinite-loop
Browse files Browse the repository at this point in the history
Infinite loop when first word is longer than line
  • Loading branch information
devongovett committed Sep 12, 2014
2 parents 95b149e + 838afe1 commit 4f2f0e6
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 4f2f0e6

Please sign in to comment.