sandal/prawn — Issue #289: make_cell with :borders property doesn't overrides the Table :cell_style{:borders}
Author: espinosa
Created: 2011-10-21 12:19:57+00:00
State: open

Hi,

I wan't to have borders only on 1 cell.

So I remove :borders at the table level (:cell_style) and create a cell with the :borders property.

But in the pdf, there are no borders on the cell.

source:
`
table [['A', make_cell('B', :borders=>[:top, :right, :bottom, :left])], ['A1', 'B1']], :cell_style=>{ :borders=>[] }
`

If I use this syntax, it's ok
`
pdf.table [['A', 'B'], ['A1', 'B1']], :cell_style=>{ :borders=>[] } do |t|
t.cells[1,1].borders = [:top, :right, :bottom, :left]
end
`

The problem is that the :borders property on the cell doesn't overrides the cells properties defined on the table level.

Regards,