Empty Lines Break Code with commands_only_to_delete
Author: DollariusCreated Sep 17, 2025Updated Sep 17, 2025
I used this amazing utility to remove blue-colored text from Latex files, which, in my case, looked like
Some original text...
\added{
This is something new
}. More original text...
and more...
\begin{figure}
\caption{
Old text
\added{
This is something new
}
Continued old text
}
\end{figure}Unfortunately, when the \added command is removed from the second example, an empty line is left which breaks the code (no empty lines allowed in figure captions).
Possible solutions:
- Completely remove the empty line after removing the commands_only_to_delete
- Leave a comment sign % on such empty line (after removing the commands_only_to_delete)
Thank you for your help and for developing such a useful tool!
Source: google-research/arxiv-latex-cleaner