A cell containing bolded text seems to always force a new
page:
!/usr/local/bin/ruby -w
require 'prawn'
require 'prawn/format'
require 'prawn/layout'
require 'prawn/table'
require 'prawn/measurement_extensions'
p = Prawn::Document.new(:margin => 0.25.in)
p.font("Times-Roman")
data = []
data << [ "a", "b" ]
data << [ "c:", "d" ]
p data.inspect
p.table data, :font_size => 8, :padding => 0, :border_width
=> 0, :align => :left
p.render_file "output.pdf"
%x{evince output.pdf}
This generates a two-page file, with c: starting a new page. The
seems to be significant; if I remove it, that goes away. (In the
real use case, I actually want to write "c: d" and have a
colspan=2 -- the goal is to have bolded headers for rows of data,
but to not force them into an actual separate table column.)