Skip to content

Word2007 Reader not handling vertically merged cells properly #1291

@mattbolt

Description

@mattbolt

This is:

Expected Behavior

When reading in a document saved with Word 2016 that contains a table with multiple vertically merged cells, the Cell Style for merged cells should indicate either "Restart" or "Continue".

Current Behavior

When inspecting the read document, the first cell of a rowspan has a vMerge Cell Style of "restart", the subsequent merged cells have a vMerge Cell Style of null. This means there is no way to know those cells should be merged.

Failure Information

Due to the document.xml not explicitly specifying a "continue" value (which is perfectly acceptable in the spec). The Reader is ignoring the w:vMerge tag because it has no w:val attribute.

Context

  • PHP version: 7.1.9
  • PHPWord version: 0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions