[latex3-commits] [git/latex3] master: Remove debug-patch to a command defining another command (d3ba83b)
Bruno Le Floch
bruno at le-floch.fr
Tue Nov 28 19:36:56 CET 2017
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/d3ba83b1f94961d8c36c81495bd6b3569059c5b1
>---------------------------------------------------------------
commit d3ba83b1f94961d8c36c81495bd6b3569059c5b1
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Tue Nov 28 13:36:56 2017 -0500
Remove debug-patch to a command defining another command
The debug patch was changing ## to # when debugging was enabled.
To avoid trouble, apply the patch unconditionally.
>---------------------------------------------------------------
d3ba83b1f94961d8c36c81495bd6b3569059c5b1
l3experimental/xgalley/l3galley.dtx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/l3experimental/xgalley/l3galley.dtx b/l3experimental/xgalley/l3galley.dtx
index 6433478..f0969d9 100644
--- a/l3experimental/xgalley/l3galley.dtx
+++ b/l3experimental/xgalley/l3galley.dtx
@@ -2310,12 +2310,11 @@
% generic build system is invoked (in case the
% \cs{etex_interlinepenalties:D} has accidentally been cleared).
% \begin{macrocode}
-\__debug_patch_args:nNNpn { { (#1) } }
\cs_new_protected:Npn \galley_interline_penalty_set:n #1
{
\int_compare:nNnTF { \etex_interlinepenalties:D 0 } = 0
{
- \etex_interlinepenalties:D 1 = \__int_eval:w #1 \__int_eval_end:
+ \etex_interlinepenalties:D 1 = \__int_eval:w (#1) \__int_eval_end:
\@@_calc_interline_penalties:
}
{
@@ -2324,7 +2323,7 @@
\__int_eval:w
\etex_interlinepenalties:D ##1
- \etex_interlinepenalties:D \etex_interlinepenalties:D 0
- + #1
+ + (#1)
\__int_eval_end:
}
\exp_args:Nf \@@_set_interline_penalty:nn
@@ -2340,7 +2339,7 @@
\int_step_function:nnnN { #1 + 1 } { 1 }
{ \etex_interlinepenalties:D 0 - 1 }
\@@_set_interline_penalty_auxii:n
- \__int_eval:w #2 \__int_eval_end:
+ \__int_eval:w (#2) \__int_eval_end:
}
\cs_new:Npn \@@_set_interline_penalty_auxi:n #1
{ \etex_interlinepenalties:D \__int_eval:w #1 \__int_eval_end: }
More information about the latex3-commits
mailing list