You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LaTeX backend strips the first-line indentation of verbatim and lstlisting code #4501
Same problem as #4485 (fixed for Markdown in #4487), in the LaTeX backend. _extract_verbatim_content (docling/backend/latex/utils/text.py) returns match.group(1).strip(), which removes the leading indentation of the first code line while later lines keep theirs. The relative indentation changes, so the code itself is altered.
It affects verbatim and lstlisting (both go through this function). Code whose first line is not indented is unaffected.
Activity