Skip to content

Bug in Sample_09_Tables.php #909

@ChrisGibb

Description

@ChrisGibb

Hi,

I've been trying to get my head around the correct use of vMerge. While do so I think I have noticed a problem with the example Sample_09_Tables.php.

On line 79 there is some code which should be showing a cell with the letter E inside. However the .docx produced has no such cell. Furthermore looking at the other document formats, this example seems to behave differently for each one.

Sample_09_Tables.php Line 79
$table->addCell(2000, $cellRowSpan)->addText(htmlspecialchars('E', ENT_COMPAT, 'UTF-8'), null, $cellHCentered);

Sample_09_Tables.docx - cell E is missing
image

Sample_09_Tables.odt - cell E is visible, but neither rowspan nor colspan appear to be working
image

Sample_09_Tables.rtf - cell E is visible rowspan/colspan attempted but layout is broken
image

Sample_09_Tables.html - cell E is visible, but neither rowspan nor colspan appear to be working
image

System:
Ubuntu: 16.04
PHP: 5.6
PHPWord: 0.13.3
Browser: Chrome 53.0.2785.116 (64-bit)
LibreOffice: 5.1.4.2


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions