Skip to content

docx.batch/2: allow tables (and nested blocks) in header/footer stories #354

Description

@bobzhang

Follow-up to #95 / #352.

The WRITER API accepts tables in a header/footer story — check_story_body
allows Paragraph and Table, and docx2html/write_headers_test.mbt pins a
header containing a table that validates.

The docx.batch/2 JSON surface does NOT: a header/footer op takes text xor
paragraphs[], mirroring a comment body. Report headers with a two-column
layout table are common, so the grammar should grow a block list, e.g.

{"op": "header", "params": {"blocks": [{"table": {...}}, {"paragraph": {...}}]}}

exclusive with text/paragraphs. Kept out of #352 to hold the PR to a
reviewable size.

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