# How to have latexdiff ignore specific line of text?

I have a certain piece of latex code that is giving me problems with compilation after I did a latexdiff.

...
\LTcapwidth=\textwidth
\begin{landscape}
\begin{table}
...


Gives me a diff file containing:

\DIFaddbegin \LTcapwidth\DIFadd{=\textwidth

But upon compilation I get the errors: ! Missing number, treated as zero and ! Illegal unit of measure (pt inserted) on that line.
(in this case I assume I would like to ignore \LTcapwidth=\textwidth.)
I played around with the latexdiff option --exclude-safecmd="LTcapwidth,textwidth" but that didn't really help as the equal sign between both commands is still diff'ed (i.e., I get \DIFaddbegin \LTcapwidth\DIFadd{=}\textwidth\DIFaddend \begin{landscape})
Have you tried using LaTeX syntax for this command: \setlength{\LTcapwidth}{\textwidth}. latexdiff does not guarantee to work on plain tex syntax. –  Andrew Swann Aug 27 '13 at 8:36