Skip to content

Commit

Permalink
Fix issue discovered by Frank Mittelbach.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmidtiby committed Nov 17, 2018
1 parent cee6123 commit fa508ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions todonotes.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1986,15 +1986,19 @@ prior to loading the todonotes package.} \else\fi%
\if@todonotes@inlinepar
\ifhmode
\@bsphack
\@todonotes@vmodefalse
\else
\@savsf\@m
\@savsk\z@
\@todonotes@vmodetrue
\fi
{\@todo[#1]{#2}}%
\@esphack%
\if@todonotes@vmode \par \fi
\else%
\@todo[#1]{#2}%
\fi}
\newif\if@todonotes@vmode
% \end{macrocode}
% \end{macro}
% \appendix
Expand Down

1 comment on commit fa508ca

@FrankMittelbach
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid getting the \par in math-mode the test above should be for \ifvmode (i.e., branches reversed), see #39. I haven't looked at the other part of the issue.

Please sign in to comment.