Merge pull request #300 from ef4/continued-indent

Fix indent with continued
This commit is contained in:
Devon Govett 2014-09-11 19:47:21 -04:00
commit 1d4c208d47

View File

@ -34,6 +34,8 @@ class LineWrapper extends EventEmitter
@once 'line', =>
@document.x -= indent
@lineWidth += indent
if options.continued and not @continuedX
@continuedX = @indent
@continuedX = 0 unless options.continued
# handle left aligning last lines of paragraphs