Im using changes to suggest changes to a shared document. To change the colour of the added and deleted text, I made new command for each:
\documentclass[pdf,12pt]{article}
\usepackage{changes}
\newcommand\del[1]{\deleted{\textcolor{red}{#1}}}
\newcommand\add[1]{\added{\textcolor{blue}{#1}}}
\begin{document}
\indent a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch \add{of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch} of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of \del{text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch of text a bunch} of text a bunch of text a bunch of text a bunch of
text.
\end{document}
For some reason, when I use the new command \del in text, if the deleted text spans multiple lines, the deleted text gets pushed outside the margin. How can I resolve this?