ddengler / prawn-grouping

A gem to add a more flexible grouping option to the prawn gem
https://github.com/ddengler/prawn-grouping
MIT License
14 stars 21 forks source link

Higher page margin seems to break algorithm #27

Open jtreitz opened 1 year ago

jtreitz commented 1 year ago
Prawn::Document.new(margin: 70) do
  5.times do
    group do |g|
      12.times { |i| g.text "Paragraphs not separated unless necessary (#{i})" }
    end
  end
  render_file 'test.pdf'
end

Expected outcome: 12 paragraphs are kept together Actual outcome: Paragraphs are split

test.pdf