Why doesn't \IfPackageLoadedT allow empty lines inside its argument?
Suppose I have:
\documentclass{article} \IfPackageLoadedT{amsmath}{ \newcommand{\foo}{} } \begin{document} a \end{document} This throws the error (line 6 being the empty line):
Runaway argument? { \newcommand {\foo }{} ./test.tex:6: Paragraph ended before \IfPackageLoadedT was complete. <to be read again> \par l.6 However, after removing the empty line, the document compiles as usual. Note that this doesn't happen with the variants \IfPackageLoadedTF and \IfPackageLoadedF.
\defis not to allow blank lines, you need\long\defto allow this, but looks like we missed some cases.