[latex3-commits] [git/LaTeX3-latex3-latex3] master: Load-order safe \rule equivalent for l3coffins (9746f1840)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Dec 4 15:41:33 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/9746f184089058b3dcd40f4fa752f7bb02325bba

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

commit 9746f184089058b3dcd40f4fa752f7bb02325bba
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Dec 4 14:41:33 2020 +0000

    Load-order safe \rule equivalent for l3coffins
    
    See also comments in xbox.


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

9746f184089058b3dcd40f4fa752f7bb02325bba
 l3kernel/l3coffins.dtx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3coffins.dtx b/l3kernel/l3coffins.dtx
index f731a02b4..38275278c 100644
--- a/l3kernel/l3coffins.dtx
+++ b/l3kernel/l3coffins.dtx
@@ -2275,11 +2275,10 @@
 % \begin{macro}{\@@_rule:nn}
 %   Abstract out creation of rules here until there is a higher-level interface.
 %    \begin{macrocode}
-\cs_new_protected:Npx \@@_rule:nn #1#2
+\cs_new_protected:Npn \@@_rule:nn #1#2
   {
-    \cs_if_exist:NTF \rule
-      { \exp_not:N \rule {#1} {#2} }
-      { \hbox:n { \tex_vrule:D width #1 height #2 \scan_stop: } }
+    \mode_leave_vertical:
+    \hbox:n { \tex_vrule:D width #1 height #2 \scan_stop: }
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.