[latex3-commits] [latex3/latex2e] gh1460: add the right number of closing \fi (96dc369a)

github at latex-project.org github at latex-project.org
Tue Sep 10 17:25:18 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1460
Link       : https://github.com/latex3/latex2e/commit/96dc369ad7ab6d4154066fdb66868e34b9c3d304

>---------------------------------------------------------------

commit 96dc369ad7ab6d4154066fdb66868e34b9c3d304
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Sep 10 17:25:18 2024 +0200

    add the right number of closing \fi


>---------------------------------------------------------------

96dc369ad7ab6d4154066fdb66868e34b9c3d304
 base/ltspace.dtx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/base/ltspace.dtx b/base/ltspace.dtx
index 1aaef744..27712e60 100644
--- a/base/ltspace.dtx
+++ b/base/ltspace.dtx
@@ -888,8 +888,7 @@
 %<latexrelease>\IncludeInRelease{2024/11/01}%
 %<latexrelease>                 {\addvspace}{drop unnecessary no-item error}%
 \def\addvspace#1{%
-  \ifhmode \ifinner \@parmoderr
-  \else \par \fi
+  \ifhmode \ifinner \@parmoderr \else \par \fi \fi
 %    \end{macrocode}
 %    
 %    \begin{macrocode}
@@ -961,8 +960,7 @@
 %    \end{macrocode}
 %    \begin{macrocode}
 \def\addpenalty#1{%
-  \ifhmode \ifinner \@parmoderr
-  \else \par \fi
+  \ifhmode \ifinner \@parmoderr \else \par \fi \fi
 %    \end{macrocode}
 %   Fix provided by Donald (though the original fix was not good
 %   enough).  In 2005 Plamen Tanovski discovered that this fix wasn't





More information about the latex3-commits mailing list.