Cell width is calculated wrong when cell text contains multiple lines
def styled_width_of(text)
@pdf.width_of(text, @text_options)
end
Should calculate the width of each line then return the maximum, i.e.
def styled_width_of(text)
if text.empty?
0
else
text.lines.collect{|line|@pdf.width_of(line, @text_options)}.max
end
end