Skip to content

DOCX: a composed cell built from an image or a list exports empty #529

Description

@DemchaAV

DocumentTableCell.node(...) lets a cell hold a composed node. Since #524 the backend writes
paragraphs and the wrappers around them (ContainerNode, SectionNode), so a cell built from
prose exports. A cell built from an image or a list still lands empty.

The reason is mechanical rather than semantic: writeImage and writeList are written
against XWPFDocument and call document.createParagraph(), so they cannot write into an
XWPFTableCell. Both need re-parameterizing to POI's IBody, which XWPFDocument and
XWPFTableCell both implement, after which writeCellNode can dispatch to them.

examples/.../ComposedTableCellExample.java uses DocumentTableCell.node(actionList), so this
is a shape the catalogue already ships.

Also update the table row of docs/architecture/backend-capability-matrix.md and
render-docx/README.md, both of which currently name this as the remaining composed-cell gap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions