diff --git a/lib/mixins/text.coffee b/lib/mixins/text.coffee index 2bc6668..597b8af 100644 --- a/lib/mixins/text.coffee +++ b/lib/mixins/text.coffee @@ -189,6 +189,7 @@ module.exports = wrap.startY = @y # the initial Y position wrap.lineWidth = lineWidth # the maximum width of each line wrap.firstLine = true # whether we are on the first line of a paragraph + wrap.lastLine = false # whether we are on the last line of a paragraph # split the line into words words = text.match(WORD_RE)