Skip to content

Conversation

@jfbu
Copy link
Contributor

@jfbu jfbu commented Jun 7, 2025

The position of the nested table will not be optimal, but it seems that generally speaking contents of multicolumn cells are rendered aligned left in general anyhow.

Purpose

Fix #13597

The produced LaTeX mark-up was completely mangled. With this patch, LaTeX mark-up compiles to PDF.

TODO: customize placement of contents (here a table) if in a multi-column cell. It seems alignment is always left (l type column) and can't be customized.

I have tested this on my stock of table tests for PDF rendering and no changes appear to be induced. So I will merge after testing completes.

sorry for multiple forcepush, but I am on a new system and I had not yet installed the testing infrastructure at my locale and mypy has tortured me

@jfbu jfbu added this to the 8.3.0 milestone Jun 7, 2025
@jfbu jfbu force-pushed the latex_13597 branch 2 times, most recently from 787cdff to 944540e Compare June 7, 2025 14:05
The position of the nested table will not be optimal, but it seems that
generally speaking contents of multicolumn cells are rendered aligned
left in general anyhow.
@jfbu jfbu merged commit 8f18b57 into sphinx-doc:master Jun 7, 2025
41 of 42 checks passed
@jfbu jfbu deleted the latex_13597 branch June 7, 2025 14:35
@jfbu
Copy link
Contributor Author

jfbu commented Jun 7, 2025

I had to relaunch the CI for Windows on this PR and again after merge due to failed linkcheck test related to a time-out situation

see https://github.com/jfbu/sphinx/actions/runs/15508817453/job/43667012833#step:9:4648

FAILED tests/test_builders/test_build_linkcheck.py::test_anchors_ignored - assert not "index.rst:2: [timeout] http://localhost:57370/#top: HTTPConnectionPool(host='localhost', port=57370): Read timed out. (read timeout=0.25)\nindex.rst:1: [timeout] http://localhost:57370/#!bar: HTTPConnectionPool(host='localhost', port=57370): Read timed out. (read timeout=0.25)\n"

cc @AA-Turner

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2025
@AA-Turner AA-Turner modified the milestones: 8.3.0, 9.0.0 Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LaTeX: Bug if a table is inside a multi-row/column cell of another table

2 participants