From 4e30a0554ec5e54d54ae9cdb5f9a0e57c59fbae9 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Thu, 24 Jan 2019 11:03:08 +0100 Subject: [PATCH] Fix issue 36 and 37, patch by Frank Mittelbach. --- todonotes.dtx | 3 +++ 1 file changed, 3 insertions(+) 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