Skip to content

Conversation

@jfbu
Copy link
Contributor

@jfbu jfbu commented Nov 16, 2025

Close #14064.

@jfbu
Copy link
Contributor Author

jfbu commented Nov 16, 2025

The test failures seem to be one more instance of something wrong related to parallel testing. Possibly related with #13996.

They can not attow come from code-blocks contents, having been replaced
with spaces prior to be recorded in the .tex file, during Docutils +
Sphinx processing, but they can arise from literalinclude directive.

However, only "top-level" TABs will obey tab stops.  In a situation
like this in some Python codeline in the

    mystring = "foo<tab>bar"

the TAB will end-up inside a Pygments LaTeX macro and at that location
it ends up being converted to spaces independently of its location
respective to tab stops.

This patch was rebased on the Sphinx master branch HEAD on Dec. 9, 2025.
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.

LaTeX: with literalinclude directives, TABs are converted in PDF into 8 spaces, independently of their location

1 participant