-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Table cell text does not wrap in ".. list-table::" #1505
Comments
Filed PR #1506 which potentially fixes the issue. |
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]>
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 8e9a24f)
I noted on PR #1506:
Unfortunately, it looks like What's the best way to get word wrapping enabled in |
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9b3bdf8)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9b3bdf8)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9ef7478)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9ef7478)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9b3bdf8)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9b3bdf8)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9ef7478)
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here (in conf.py). The PRRTE docs don't use the RST ".. list-table::" directive much, so this change won't really have much of an effect here. However, OMPI and PMIx were updated with this conf.py change, so we might as well keep all 3 projects more-or-less in sync. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit 9ef7478)
I think you can remove the "Needed: replication" label since the issue is visible at https://sphinx-rtd-theme.readthedocs.io/en/latest/demo/lists_tables.html#list-tables |
The sphinx-rtd-theme currently disables word wrap in table cells due to a bug: readthedocs/sphinx_rtd_theme#1505 This is fixed by overriding the CSS and enabling word wrapping.
The sphinx-rtd-theme currently disables word wrap in table cells due to a bug: readthedocs/sphinx_rtd_theme#1505 This is fixed by overriding the CSS and enabling word wrapping.
The sphinx-rtd-theme currently disables word wrap in table cells due to a bug: readthedocs/sphinx_rtd_theme#1505 This is fixed by overriding the CSS and enabling word wrapping.
The sphinx-rtd-theme currently disables word wrap in table cells due to a bug: readthedocs/sphinx_rtd_theme#1505 This is fixed by overriding the CSS and enabling word wrapping.
The sphinx-rtd-theme currently disables word wrap in table cells due to a bug: readthedocs/sphinx_rtd_theme#1505 This is fixed by overriding the CSS and enabling word wrapping.
The sphinx_rtd_theme does not properly handle wrapping long lines in table cells when rendering to HTML due to a CSS issue (see readthedocs/sphinx_rtd_theme#1505). Until the issue is fixed upstream in sphinx_rtd_theme, we can simply override the CSS here. This commit overrides the CSS in conf.py and also touches up some places where we previously tried to work around the lack of word wrapping. Signed-off-by: Jeff Squyres <[email protected]>
For anyone else who finds this in the future (like me), here's a tutorial on how to fix this so you don't have to look through all these linked commits: The CSS code that fixes this and needs to be embedded is: .wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal;
} (One project uses To include this CSS code, some projects set a custom CSS file as the |
Previously, tables with much text in a row had had scroll bars to scroll through all the text instead of automatic line breaks. This is due to an open issue in the sphinx read the docs theme (readthedocs/sphinx_rtd_theme#1505). A workaround has been implemented to fix this until the issue is resolved. Additionally, grid tables have been replaced by list tables. This allows explicitly setting the width of the columns and makes it easier to change the tables in the future.
This is still a thing in 3.0 :/ Thanks for mentioned fixes! |
Problem
When using the
sphinx_rtd_theme
, text does not wrap in RST.. list-table::
cells like it does with the default Sphinx HTML theme. For example, the default Sphinx HTML builder theme renders like this:(FWIW: the LaTeX and text Sphinx builders also render with wrapped text in the cell)
But the
sphinx_rtd_theme
renders the same RST like this:The HTML difference between the two appears to be that the
sphinx_rtd_theme
has this set:Reproducible Project
conf.py
:index.rst
:Error Logs/Results
Expected Results
I expect the words to wrap in the cell, like they do with the default Sphinx HTML builder theme, and with other Sphinx builders.
Environment Info
The text was updated successfully, but these errors were encountered: