I believe there should be a method like
group do
# stuff to keep on one page
end
in "edge" Prawn (on GitHub). Haven't used it myself yet.
row_height = font.ascender - font.descender + font.line_gap
I haven't read up on how Prawn handles all of the moving parts here so
if I'm up to no good someone should let me know.
I have no idea if I'm doing something I shouldn't but I figured out
table row height using font.ascender, font.descender and
font.line_gap. This height multiplied by the number of rows in your
table will give you your table's height.
http://gist.github.com/220265
What's the machinery in prawn/layout I can use instead?
It works fine to calculate multi-line rows. Just multiply by two.
What's the machinery in prawn/layout I can use instead?
That's what group does for you. you don't need to worry about it.
-greg