Skip to content

Blank header added to headerless table converting from RST to DOCX in recent versions #7902

@zerkerX

Description

@zerkerX

Hello. I have recently noticed an odd regression in behaviour between Pandoc version 2.9.2.1 (stable Debian repo version that I ran in WSL) and version 2.16.2, which I downloaded directly for Windows.

On the recent version, when converting a headerless table from reStructuredText to
DOCX, an empty header row is appended to the table. On the old version, the table correctly has no header.

Example document is as follows:

Test Procedure 1
================

======= =============================
Test ID Test_1
UUT     Any
Inputs  Test Equipment
Outputs Test Report
======= =============================

#. Test procedure step 1
#. Test procedure step 2

I also downloaded the Windows version of 2.9.2.1 and it behaves the same (correctly) as the Linux version in WSL.

Exact command used:

pandoc -so tablebug_2.9.2.1.docx tablebug.rst

(and similar for 2.16.2)

Outputs from my generation and screenshots of those documents (with table selected) included below:

tablebug_2 9 2 1
tablebug_2.9.2.1.docx

tablebug_2 16 2
tablebug_2.16.2.docx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions