[latex3-commits] [git/LaTeX3-latex3-latex3] master: Simplify \mode_leave_vertical: (782d36c)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Sep 24 00:39:12 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/782d36c019bd09df7640e8c2a8ef40c1908a46e5

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

commit 782d36c019bd09df7640e8c2a8ef40c1908a46e5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Sep 23 23:39:12 2018 +0100

    Simplify \mode_leave_vertical:


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

782d36c019bd09df7640e8c2a8ef40c1908a46e5
 l3kernel/l3candidates.dtx |   18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 0af1dca..abf1331 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -1521,21 +1521,13 @@
 %   this will switch to horizontal mode and insert \tn{everypar} tokens and
 %   nothing else. Unlike the \LaTeXe{} version, the availability of \eTeX{}
 %   means using a mode test can be done at for example the start of an
-%   \tn{halign}. The \tn{quitvmode} primitive essentially wraps the same
-%   code up at the engine level.
+%   \tn{halign}.
 %    \begin{macrocode}
-\cs_new_protected:Npx \mode_leave_vertical:
+\cs_new_protected:Npn \mode_leave_vertical:
   {
-    \cs_if_exist:NTF \tex_quitvmode:D
-      { \tex_quitvmode:D }
-      {
-        \exp_not:n
-          {
-            \if_mode_vertical:
-              \exp_after:wN \tex_indent:D
-            \fi:
-          }
-     }
+    \if_mode_vertical:
+      \exp_after:wN \tex_indent:D
+    \fi:
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list