Skip to content

Escape cell delimiters in Org tables - #524

Open
longint2 wants to merge 1 commit into
astanin:masterfrom
longint2:fix/orgtbl-cell-delimiters
Open

longint2 wants to merge 1 commit into
astanin:masterfrom
longint2:fix/orgtbl-cell-delimiters

Conversation

@longint2

@longint2 longint2 commented Dec 6, 2026

Copy link
Copy Markdown

An orgtbl cell or header containing | is emitted literally, creating extra table columns in Org. This also affects multiline cells.

Use the existing DataRow escape map to write content pipes as \vert{}, as specified in the Org manual. Four regressions cover headerless/headered and single/multiline tables while preserving other Org markup; README documents the escaping.

Validation: 4 regression failures before fix; tox py313-extra: 386 passed, 1 skipped, including NumPy/Pandas and doctests. README doctests and changed-file Ruff formatting passed; all 269 Ruff findings match unchanged baseline; sdist/wheel builds passed.

AI disclosure: implementation, regression tests, and this description were prepared using OpenAI Codex (GPT-6). The reported validation was executed locally.

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