Skip to content

Support for Autofit/Auto Table Layout #70

@lasserb-oak

Description

@lasserb-oak

Currently, tables exported to Word seem to default to a fixed layout. This often results in columns that don't fit the content well or tables that don't scale correctly across the page.

It would be great to have support for layout: 'autofit' or tableLayout: 'auto' to allow Word to automatically adjust column widths based on their content.

To reproduce:
Create export the following html:
<table style="table-layout: auto;"><tr><td>Cell</td></tr></table>

Exported docx always uses TableLayoutType.FIXED regardless of the HTML.

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