[latex3-commits] [git/LaTeX3-latex3-latex3] master: Terminate \rule correctly (see #815) (2591d3f7d)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Oct 8 13:39:30 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/2591d3f7d14693dec7a6231cf6981cfe7fe5cf2b
>---------------------------------------------------------------
commit 2591d3f7d14693dec7a6231cf6981cfe7fe5cf2b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Oct 8 12:39:30 2020 +0100
Terminate \rule correctly (see #815)
>---------------------------------------------------------------
2591d3f7d14693dec7a6231cf6981cfe7fe5cf2b
l3trial/xbox/xbox.dtx | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/l3trial/xbox/xbox.dtx b/l3trial/xbox/xbox.dtx
index 5efb0974b..ea54c8f1d 100644
--- a/l3trial/xbox/xbox.dtx
+++ b/l3trial/xbox/xbox.dtx
@@ -1274,7 +1274,10 @@
% \begin{macro}{\rule_vertical:n}
% Wrappers around the \TeX{} primitives for creating rules, with the usual
% dimension expression support. The non-expanding rule is set up in
-% horizontal mode as that is usually the best plan.
+% horizontal mode as that is usually the best plan. The \cs{scan_stop:}
+% is needed here as \TeX{} continues to scan for keywords: multiple uses
+% of the same word are permitted. (Thanks to Ruixi Zhang for pointing this
+% out.)
% \begin{macrocode}
\cs_new_protected:Npn \rule:nnn #1#2#3
{
@@ -1284,6 +1287,7 @@
height \dim_eval:n {#2} \exp_stop_f:
depth \dim_eval:n {#3} \exp_stop_f:
width \dim_eval:n {#1} \exp_stop_f:
+ \scan_stop:
}
}
\cs_new_protected:Npn \rule_horizontal:nn #1#2
@@ -1291,9 +1295,10 @@
\tex_hrule:D
height \dim_eval:n {#1} \exp_stop_f:
depth \dim_eval:n {#2} \exp_stop_f:
+ \scan_stop:
}
\cs_new_protected:Npn \rule_vertical:n #1
- { \tex_vrule:D width \dim_eval:n {#1} \exp_stop_f: }
+ { \tex_vrule:D width \dim_eval:n {#1} \exp_stop_f: \scan_stop: }
% \end{macrocode}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list.