diff --git a/todonotes.dtx b/todonotes.dtx index 7b38958..178bb3b 100644 --- a/todonotes.dtx +++ b/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