Skip to content

Print at least one dash for empty unaligned table columns - #271

Open
gaetanzanella wants to merge 1 commit into
swiftlang:mainfrom
gaetanzanella:fix-empty-table-column-delimiter
Open

Print at least one dash for empty unaligned table columns#271
gaetanzanella wants to merge 1 commit into
swiftlang:mainfrom
gaetanzanella:fix-empty-table-column-delimiter

Conversation

@gaetanzanella

@gaetanzanella gaetanzanella commented May 30, 2026

Copy link
Copy Markdown

Summary

MarkupFormatter (behind Markup.format()) prints an empty delimiter cell (||) for any table column that has no alignment and no content. But an empty delimiter cell is invalid GFM — every delimiter cell must contain at least one -.

Dependencies

None.

Testing

The fix is covered by a new unit test; no manual setup is required.

Steps:

  1. The new test testEmptyUnalignedColumnPrintsValidDelimiter

Checklist

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary — no public API or documented behavior changed, so no docs update needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant