You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
left, right, and center-aligned Markdown tables #53
I realize that Markdown is a mess, but for tablefmt="github" with stralign argument, the header line (which goes as -----------) can be modified as the following:
stralign="left": header lines will have :---------.
stralign="right": header lines will have ---------:.
I just had a look at implementing this and realised that this is exactly what the 'pipe' format does. The README even points out that the 'github' format is the 'pipe' format without alignment markers, although I missed that the first time I read through the patterns.
Activity
samueljsb commentedon Aug 5, 2022
I just had a look at implementing this and realised that this is exactly what the 'pipe' format does. The README even points out that the 'github' format is the 'pipe' format without alignment markers, although I missed that the first time I read through the patterns.
kdeldycke commentedon Oct 6, 2022
Had the same issue trying to produce a GitHub table with alignment directives. I ended up with a workaround to emulate that behavior. For reference, my hackish code is available at: https://github.com/kdeldycke/meta-package-manager/blob/af261b7194c592bbd45a6910bed8063fa6c59fbe/meta_package_manager/inventory.py#L56-L87
kdeldycke commentedon Apr 4, 2023
For reference, I proposed a PR to address this issue at: #261
astanin commentedon Sep 27, 2024
I suppose this feature is now covered by
colon_gridformat, pull request #341kdeldycke commentedon Feb 2, 2026
PR #341 that has been merged upstream does not fix this issue.
Here is the proof:
If the issue I reported was addressed, we would have this printed instead:
Can we re-open this issue and consider re-opening #261 ?
Fix `TableFormat.GITHUB` to render proper alignment hints
kdeldycke commentedon Mar 5, 2026
FYI, this is not fixed in the brand new v0.10 release, so I made a new PR at: #410
Fix alignments in `github` tables