sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

LaTeX: revisit and trim visit_target()

Open jfbu opened this issue 8 months ago • 1 comments

Refs: #13609, #11093 (#11333), #6026 (#6051).

  • Fix misnomer in test-latex-labels/index.rst text.

    Refs: https://github.com/sphinx-doc/sphinx/issues/13609#issuecomment-2934964031

  • Patch writers/latex.py as per the proposal at end of: https://github.com/sphinx-doc/sphinx/issues/13609#issuecomment-2937087733

  • Update test_latex_build.py::test_latex_labels to detect non desired extra label in LaTeX output.

Nota bene: this commit does not revert "Tests: update LaTeX label test expectations from Docutils r10151 (#13610)" (commit 68d56109ff50dd81dd31d4a01e3dccbd006c50ee) as it is still necessary for compatibility with both Docutils 0.21.2 and Docutils HEAD at their r10151.

jfbu avatar Jun 05 '25 09:06 jfbu

The patch looks good to me to solve the test output issue. (Some issues discussed in #13609 remain open.)

gmilde avatar Jun 05 '25 13:06 gmilde