From a390902ffe4ddcd8d1bf3c2643febe6b19e5f0fb Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Sun, 15 Apr 2018 21:46:16 +0200 Subject: [PATCH] Modification of the handling of whitespace around the todo command. Change suggested by Frank Mittelbach. --- todonotes.dtx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/todonotes.dtx b/todonotes.dtx index c70b61d..0b843b9 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -424,8 +424,8 @@ % \newcommand{\insertref}[1]{\todo[color=green!40]{#1}} % \newcommand{\explainindetail}[1]{\todo[color=red!40]{#1}} % \end{verbatim} -% An example that uses all of the color options is given below -% \todo[linecolor=green!70!white, backgroundcolor=blue!20!white, +% An example that uses all of the color options is given +% below\todo[linecolor=green!70!white, backgroundcolor=blue!20!white, % bordercolor=red]{Anything but default colors}. % \begin{verbatim} % \todo[linecolor=green!70!white, backgroundcolor=blue!20!white, @@ -1835,7 +1835,7 @@ % \begin{macro}{\todo} % Define the |\todo| command as a redirection to |\@todo|. % \begin{macrocode} -\newcommand{\todo}[2][]{\@bsphack\@todo[#1]{#2}\@esphack\ignorespaces}% +\newcommand{\todo}[2][]{\@bsphack{\@todo[#1]{#2}}\@esphack}% % \end{macrocode} % \end{macro} % \appendix