Open mikebeaton opened 6 months ago
Thanks for reporting. I just had a quick look at the diff listing of the commit https://github.com/acidanthera/OpenCorePkg/pull/537/commits/140f35529a908c8b67ac4181ec2aa78b5f964c38 and I can see there are many changes involving \item lists, which is a somewhat fragile part of latexdiff processing. You could experiment with --exclude-textcmd=texttt but even if it work it would probably mean you lose all the markup. There are some other long-standing bug reports related to itemised lists,, and if I am able to address those, I might have a look at your case again.
After a sequence of large (but move only) changes inside a large .tex file (specifically this change https://github.com/acidanthera/OpenCorePkg/pull/537), latexdiff is producing invalid LaTeX: in two or three instances, it is placing several lines of diff, including a new paragraph, inside
texttt
, which is invalid LaTeX for subsequent processing.The issue occurs cross-platform, and on 1.3.1 as well as 1.3.3.
This is the error shown after using
pdflatex
to process the output:This is the fragment of the diff file, with the close brace of the
texttt
, which starts on line 6488, highlighted on line 6495, several lines below:Also in plain text:
The same issue occurs three times in the diff file. I can manually fix up the invalid LaTeX and the diff file is otherwise fine.