Subject: | cellSpan does not merge cells correctly |
The following script
my
$self=OpenOffice::OODoc::Document->new(create=>'spreadsheet',file=>'Test.ods');
my $t=$self->getTable(0,3,3);
my $r=$self->getTableRow($t,0);
my $c=$self->getCell($r,0);
$self->cellSpan($c,3);
$self->cellValue($c,'AA');
$self->save;
produces the following table-row element:
<table:table-row table:style-name="ro1">
<table:table-cell office:value-type="string"
table:number-columns-spanned="3" table:number-rows-spanned="1">
<text:p text:style-name="Standard">AA</text:p>
</table:table-cell>
<table:table-cell/>
<table:covered-table-cell/>
</table:table-row>
However, according to ODF specification, the second cell should be
<table:table-cell/>
(v. Open Document Format for Office Applications (OpenDocument) v1.0
OASIS Standard, 1 May 2005, p. 183 or
http://books.evc-cit.info/odbook/ch04.html#merged-cell-section)