From 838afe15a02f3513a03292e060e1ca3280a64c8a Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Fri, 12 Sep 2014 16:25:12 -0400 Subject: [PATCH] Infinite loop when first word is longer than line --- lib/line_wrapper.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 3a695e25e..45f25cb80 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -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