ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
513 stars 72 forks source link

Units test from test suite fails to compile #225

Closed tobiasleibner closed 3 years ago

tobiasleibner commented 3 years ago

When using my local latexdiff version (LATEXDIFF 1.3.1.1 (Algorithm::Diff 1.15 so, Perl v5.30.0)) on the units test files as

latexdiff units-old.tex units-new.tex > units-diff.tex

the output of the SI Unit package test part is

 SI Unit package test

 This is the \DIFdelbegin \DIFdel{old text \mbox{%DIFAUXCMD
 \SI{600}{\meter\per\second}
 }\hspace{0pt}%DIFAUXCMD
 }\DIFdelend \DIFaddbegin \DIFadd{new text \mbox{%DIFAUXCMD
 \SI{300}{\meter\per\second}
 }\hspace{0pt}%DIFAUXCMD
 }

which is the same output as in the units-diff file in this repository except for the \hspace{0pt} commands, which cause the compilation to fail.

Not sure if this is related to #224, so I created another issue though the errors happen in the same test files.

tobiasleibner commented 3 years ago

Nevermind, just saw that this has already been reported as #218 and fixed in master.