Closed bjorntrondsen closed 9 years ago
Thanks for the report. Will look into it.
Sorry for the late reply. This probably happens because you reference the original document within your group by using pdf.text in the curly braces. The following should also work:
Prawn::Document.new do |pdf|
pdf.group do |group_pdf|
40.times { group_pdf.text "1111" }
end
pdf.group do |group_pdf|
40.times { group_pdf.text "222" }
end
end
Hello The following works as expected:
If I change to explicit block form, then the content is rendered twice and grouping doesnt happen:
Tested with Prawn 1.3.0 and the latest version of prawn-grouping from github/master