#7 new
tnt (at banza)

Table breaks with non-standard leading (:spacing)

Reported by tnt (at banza) | June 1st, 2009 @ 09:21 AM

Hello

I am not sure wether this bug is already known (actually I cannot imagine that it is not) but but it is not reported here so I hope not to bother anybody with this report.

Problem: when I set the :spacing to a higher value either the padding at the bottom of table cells with more than one line decreases or - from a certain amount - a pagebreak occurs 'within' those cells.

Obviously the :spacing isn't taken into account for the height of the cells/rows.

Regards, T.

Comments and changes to this ticket

  • tnt (at banza)

    tnt (at banza) June 1st, 2009 @ 10:28 AM

    I modified prawn to fix the problem for now:
    prawn/document/text/wrapping.rb

    22c22,23

    < string.lines.to_a.length * font.height_at(size)

    
    
    
    > lcount = string.lines.to_a.length > lcount * font.height_at(size) + ( lcount - 1 ) * text_options[:spacing].to_f

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages