summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/todonotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-25 23:24:36 +0000
committerKarl Berry <karl@freefriends.org>2019-01-25 23:24:36 +0000
commit3851f9966878b3d9ab5296c68a738bc8fa2dcb89 (patch)
tree9818a593813523b3ea31cde7ba3a4396886226c2 /Master/texmf-dist/source/latex/todonotes
parentdbb07a7a7359963676891de548723b36785eff79 (diff)
todonotes
git-svn-id: svn://tug.org/texlive/trunk@49820 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/todonotes')
-rw-r--r--Master/texmf-dist/source/latex/todonotes/todonotes.dtx24
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
index 4604bceb623..b4180a797f6 100644
--- a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
+++ b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
@@ -1,17 +1,15 @@
% \iffalse meta-comment
%
-% Copyright (C) 2015 by Henrik Skov Midtiby <henrikmidtiby@gmail.com>
+% Copyright (C) 2019 by Henrik Skov Midtiby <henrikmidtiby@gmail.com>
% -------------------------------------------------------
%
-% This file may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.2
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
-% The latest version of this license is in:
-%
-% http://www.latex-project.org/lppl.txt
-%
-% and version 1.2 or later is part of all distributions of LaTeX
-% version 1999/12/01 or later.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
%
% \fi
%
@@ -22,7 +20,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{todonotes}
%<*package>
- [2018/11/22 v1.1.1 Todonotes source and documentation.]
+ [2019/01/24 v1.1.2 Todonotes source and documentation.]
%</package>
%
%<*driver>
@@ -47,7 +45,7 @@
%</driver>
% \fi
%
-% \CheckSum{710}
+% \CheckSum{717}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -206,6 +204,7 @@
% Steamline which options that are accepted to size commands
% (both commands (backslash tiny) and text (tiny) are now supported).}
% \changes{1.1.1}{2018/11/22}{Implemented shadow and noshadow options for the todo command.}
+% \changes{1.1.2}{2019/01/24}{Fix issue 36 and 37.}
% \GetFileInfo{todonotes.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
@@ -1983,6 +1982,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