Closed jasonmccsmith closed 5 years ago
WORKAROUND:
Remove whitespace from last argument block, --exclude-textcmd
not needed.
\lstdefinelanguage{json}{morestring=[b]",morestring=[d]'}
Closing as probably user error.
You can also use --allow-spaces
instead of removing the space but it might cause some unwanted side-effects
Using
listing
package, and the\lstdefinelanguage
command. The use is in new.tex, but not in old.tex, so latexdiff is attempting to mark it as added, resulting in:This breaks the command badly. The last argument of
\lstdefinelanguage
should NOT be treated as text, and instead left alone, resulting in:I assumed that adding the option
--exclude-textcmd=lstdefinelanguage
would do this, but it does not.Bug, or user error?