Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No vertical lines in a table #659

Merged
merged 1 commit into from
Feb 17, 2021
Merged

No vertical lines in a table #659

merged 1 commit into from
Feb 17, 2021

Conversation

mih
Copy link
Collaborator

@mih mih commented Feb 17, 2021

This is a first demo of how it could be done. Essentially given sphinx a dedicated clue via tabularcolumns instead of having it guess.

https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-tabularcolumns

It is using the sphinx-specifc \Y column width specifier that should work across all table type we need (sphinx is switching type a lot, depending on table content).

Demo

Before:

image

Now:

image

More general table beautifications are coming, but this kind must be done per each table.

This is a first demo of how it could be done. Essentially given
sphinx a dedicated clue via `tabularcolumns` instead of having it
guess.

https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-tabularcolumns

It is using the sphinx-specifc `\Y` column width specifier that should
work across all table type we need (sphinx is switching type a lot,
depending on table content).
@adswa
Copy link
Contributor

adswa commented Feb 17, 2021

oh, wow, that already works wonders!

@adswa adswa merged commit 76cb8ec into master Feb 17, 2021
@adswa adswa deleted the novertical branch February 17, 2021 15:40
@mih
Copy link
Collaborator Author

mih commented Feb 17, 2021

Death to vertical lines!

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.

2 participants