Skip to content

Wrong number of columns in table (HTML export) #5918

@dipamsen

Description

@dipamsen

Description

The following typst code

#table(columns: 2, column-gutter: 1em, row-gutter: 1em)[A][B][C][D][E][F]

gives the following html when exported (only part within <body> is shown here) - there should be 2 columns but there are 3 columns in the output.

<table>
  <tr>
    <td>A</td>
    <td>B</td>
    <td>C</td>
  </tr>
  <tr>
    <td>D</td>
    <td>E</td>
    <td>F</td>
  </tr>
</table>

This seems to be the case, when at least one of row-gutter or column-gutter is present. (maybe other arguments as well)

Simply doing #table(columns: 2)[A][B][C][D][E][F] gives the correct output.

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtmlRelated to HTML export

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions