Fix issue 36 and 37, patch by Frank Mittelbach.

master
Henrik Skov Midtiby 7 years ago committed by Jacopo De Simoi
parent a55d1c879d
commit 4e30a0554e
  1. 3
      todonotes.dtx

@ -1981,6 +1981,9 @@ prior to loading the todonotes package.} \else\fi%
% Define the |\todo| command as a redirection to |\@todo|.
% \begin{macrocode}
\newcommand{\todo}[2][]{%
% Needed to output any dangling \item of a noskip section (see #36):
\if@inlabel \leavevmode \fi
\if@noskipsec \leavevmode \fi
\if@todonotes@inlinepar
\ifhmode
\@bsphack

Loading…
Cancel
Save