def initialize(column, text, attributes = {})
super(column, :cell)
@text = text
@colspan = nil
@rowspan = nil
if !column.nil?
update_attributes(column.attributes)
end
if !attributes.nil?
if attributes.has_key? 'colspan'
@colspan = attributes['colspan']
attributes.delete('colspan')
end
if attributes.has_key? 'rowspan'
@rowspan = attributes['rowspan']
attributes.delete('rowspan')
end
update_attributes(attributes)
end
if @attributes['style'] == :asciidoc && !column.table.header_row?
parent_doctitle = @document.attributes.delete('doctitle')
@inner_document = Document.new(@text, :header_footer => false, :parent => @document)
@document.attributes['doctitle'] = parent_doctitle unless parent_doctitle.nil?
end
end