Skip to content
Browse files

honor horizontal_padding in cell

  • Loading branch information...
1 parent 53e381d commit a11ba4604553a74651eb5f9757b47604d8ca6ded @newellista committed Jan 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/prawn/table.rb
View
2 lib/prawn/table.rb
@@ -290,7 +290,7 @@ def generate_table
when Prawn::Table::Cell
e.document = @document
e.width = @column_widths[col_index]
- e.horizontal_padding = C(:horizontal_padding)
+ e.horizontal_padding = (e.horizontal_padding == 0) ? C(:horizontal_padding) : e.horizontal_padding
e.vertical_padding = C(:vertical_padding)
e.border_width = C(:border_width)
e.border_style = :sides

0 comments on commit a11ba46

Please sign in to comment.
Something went wrong with that request. Please try again.