mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Fix indent
This commit is contained in:
parent
4b3d2c9e30
commit
abc871feda
@ -59,11 +59,10 @@ class LineWrapper extends EventEmitter
|
||||
options.lineWidth = @lineWidth
|
||||
@emit 'line', buffer, options, this
|
||||
|
||||
spaceLeft = @lineWidth - indent
|
||||
|
||||
while bk = breaker.nextBreak()
|
||||
if not last? or last.required
|
||||
@emit 'firstLine', options, this
|
||||
spaceLeft = @lineWidth
|
||||
|
||||
word = text.slice(last?.position or 0, bk.position)
|
||||
w = wordWidths[word] ?= width(word, options) + charSpacing + wordSpacing
|
||||
@ -86,7 +85,6 @@ class LineWrapper extends EventEmitter
|
||||
|
||||
# reset the space left and buffer
|
||||
if bk.required
|
||||
spaceLeft = @lineWidth - indent
|
||||
buffer = ''
|
||||
lineWidth = 0
|
||||
wc = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user