Title: moinmoin and textile formats: literal pipes in cells silently split columns · Issue #501 · astanin/python-tabulate · GitHub
Open Graph Title: moinmoin and textile formats: literal pipes in cells silently split columns · Issue #501 · astanin/python-tabulate
X Title: moinmoin and textile formats: literal pipes in cells silently split columns · Issue #501 · astanin/python-tabulate
Description: What breaks tablefmt="moinmoin" and tablefmt="textile" write cell and header values raw, so a literal pipe in the content silently splits the cell — the same class as the mediawiki problem in #499, but with these two formats' own separat...
Open Graph Description: What breaks tablefmt="moinmoin" and tablefmt="textile" write cell and header values raw, so a literal pipe in the content silently splits the cell — the same class as the mediawiki problem in #499,...
X Description: What breaks tablefmt="moinmoin" and tablefmt="textile" write cell and header values raw, so a literal pipe in the content silently splits the cell — the same class as the mediaw...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/501
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"moinmoin and textile formats: literal pipes in cells silently split columns","articleBody":"### What breaks\n\n`tablefmt=\"moinmoin\"` and `tablefmt=\"textile\"` write cell and header values raw, so a literal pipe in the content silently splits the cell — the same class as the mediawiki problem in #499, but with these two formats' own separators:\n\n```python\n>>> import tabulate\n>>> print(tabulate.tabulate([[\"x | y\", \"a || b\"]], tablefmt=\"moinmoin\"))\n||\u003cstyle=\"text-align: left;\"> x | y ||\u003cstyle=\"text-align: left;\"> a || b ||\n```\n\n`||` is the cell separator in MoinMoin tables, so `a || b` becomes three cells and the style attribute of the second one ends up on a phantom cell. In textile, `|` is the separator, so `x | y` splits in two. Rendered on a real MoinMoin wiki or through a textile converter, the data is silently corrupted.\n\n### Fix direction\n\nEscape `|` as `|` in the cell and header values of both formats — MoinMoin and Textile both pass numeric character references through and render them as the literal character — the same approach the mediawiki fix (#500) uses.\n","author":{"url":"https://github.com/rahul05ranjan","@type":"Person","name":"rahul05ranjan"},"datePublished":"2026-11-09T07:44:58Z","url":"https://github.com/astanin/python-tabulate/issues/501"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eecec067-f071-25a1-3aa4-bb7db49952fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9BC:249255:ADB427:EBC34A:6AFF4007 |
| html-safe-nonce | 3182c93cc74d5d60371a906be7dd221916be0981306ca3682b1ec3ba30330bed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJDOjI0OTI1NTpBREI0Mjc6RUJDMzRBOjZBRkY0MDA3IiwidmlzaXRvcl9pZCI6IjYzNDc3NDQ4MDgwODkzNzA2MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0db831f109fa75f92bf705122399b425273381ab9dd30b822154c524dfa58862 |
| hovercard-subject-tag | issue:6282041571 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/astanin/python-tabulate/501/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b993ef2904548dde923a51b5568f7749d02e0babab83a28f3bcb7149b9a20433/astanin/python-tabulate/issues/501 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b993ef2904548dde923a51b5568f7749d02e0babab83a28f3bcb7149b9a20433/astanin/python-tabulate/issues/501 |
| og:image:alt | What breaks tablefmt="moinmoin" and tablefmt="textile" write cell and header values raw, so a literal pipe in the content silently splits the cell — the same class as the mediawiki problem in #499,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rahul05ranjan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 07f40d184b74ca701a2005d4a164bf7038be26fc145c2623336a91fe477cc584 |
| turbo-cache-control | no-preview |
| go-import | github.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git |
| octolytics-dimension-user_id | 71802 |
| octolytics-dimension-user_login | astanin |
| octolytics-dimension-repository_id | 205875548 |
| octolytics-dimension-repository_nwo | astanin/python-tabulate |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205875548 |
| octolytics-dimension-repository_network_root_nwo | astanin/python-tabulate |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8e428a801c2dccf4d1f411040a0e0b7fab7d4061 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width