diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 31b2d1703..b887aff93 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -46,6 +46,11 @@ class LineWrapper extends EventEmitter @lastLine = true @once 'line', => + # when line has an explicit break, don't carry across + # the x continuation. + if @lineFinal + @lineFinal = false + @continuedX = @indent @document.y += options.paragraphGap or 0 options.align = align @lastLine = false @@ -137,6 +142,7 @@ class LineWrapper extends EventEmitter if bk.required or w > @spaceLeft if bk.required + @lineFinal = true @emit 'lastLine', options, this # if the user specified a max height and an ellipsis, and is about to pass the