prawn:Prawn::Text#text :final_gap

#!/usr/bin/env ruby

require "prawn"

pdf = Prawn::Document.new

pdf.text "foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo"
pdf.text "foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo", :final_gap => false
pdf.text "foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo"

pdf.render_file(File.basename($0, ".rb") + ".pdf")