[latex3-commits] [latex3/latex3] main: Reindent l3kernel codes, not so sure (313702fb7)
github at latex-project.org
github at latex-project.org
Sun Dec 17 20:29:01 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/313702fb755eedbca374c02093cbf60dbd1900e6
>---------------------------------------------------------------
commit 313702fb755eedbca374c02093cbf60dbd1900e6
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Sun Dec 17 04:34:19 2023 +0800
Reindent l3kernel codes, not so sure
>---------------------------------------------------------------
313702fb755eedbca374c02093cbf60dbd1900e6
l3kernel/l3coffins.dtx | 2 +-
l3kernel/l3fp-aux.dtx | 2 +-
l3kernel/l3fp-random.dtx | 10 +++++-----
l3kernel/l3keys.dtx | 6 +++---
l3kernel/l3regex.dtx | 2 +-
texmf/tex/latex/base/ltluatex.lua | 10 +++++-----
6 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/l3kernel/l3coffins.dtx b/l3kernel/l3coffins.dtx
index 44a392e8b..76bcdc1b2 100644
--- a/l3kernel/l3coffins.dtx
+++ b/l3kernel/l3coffins.dtx
@@ -1266,7 +1266,7 @@
{
( \dim_to_fp:n {#7} / \dim_to_fp:n {#8} )
* ( \dim_to_fp:n {#4} - \dim_to_fp:n {#6} )
- + \dim_to_fp:n {#5}
+ + \dim_to_fp:n {#5}
}
}
}
diff --git a/l3kernel/l3fp-aux.dtx b/l3kernel/l3fp-aux.dtx
index 5fc528865..41862e0f9 100644
--- a/l3kernel/l3fp-aux.dtx
+++ b/l3kernel/l3fp-aux.dtx
@@ -906,7 +906,7 @@
#2#3#4; {#5} ;
}
\cs_new:Npn \@@_basics_pack_weird_high:NNNNNNNNw
- 1 #1#2#3#4 #5#6#7#8 #9; { ; {#1#2#3#4} {#5#6#7#8} {#9} }
+ 1 #1#2#3#4 #5#6#7#8 #9; { ; {#1#2#3#4} {#5#6#7#8} {#9} }
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3fp-random.dtx b/l3kernel/l3fp-random.dtx
index 5a94a43c3..6ed9fa589 100644
--- a/l3kernel/l3fp-random.dtx
+++ b/l3kernel/l3fp-random.dtx
@@ -434,10 +434,10 @@
\cs_new:Npn \@@_randint_auxiv_o:ww #1#2#3#4#5 ; #6#7#8#9
{
\if_int_compare:w
- \if_int_compare:w #1#2 > #6#7 \exp_stop_f: 1 \else:
+ \if_int_compare:w #1#2 > #6#7 \exp_stop_f: 1 \else:
\if_int_compare:w #1#2 < #6#7 \exp_stop_f: - \fi: \fi:
- #3#4 > #8#9 \exp_stop_f:
- \@@_use_i_until_s:nw
+ #3#4 > #8#9 \exp_stop_f:
+ \@@_use_i_until_s:nw
\fi:
\@@_randint_auxv_o:w {#1}{#2}{#3}{#4}#5
}
@@ -567,8 +567,8 @@
\exp_after:wN \@@_randint_wide_auxii:w
\int_value:w \@@_int_eval:w #5 * #3 + #6 * #1 +
(#5 * #4 + #6 * #3 + #7 * #1 +
- (#5 * #2 + #7 * #3 +
- (16384 * #6 + #7) * (16384 * #4 + #2) / 268435456) / 16384
+ (#5 * #2 + #7 * #3 +
+ (16384 * #6 + #7) * (16384 * #4 + #2) / 268435456) / 16384
) / 16384 \exp_after:wN ;
\int_value:w \@@_int_eval:w (#5 + #6) * 16384 + #7 ;
#1 ; #5 ;
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 4ee2fbd10..032c3adde 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -1344,9 +1344,9 @@
% \begin{macrocode}
\cs_new:Npn \@@_misplaced_equal_after_active_error:w
\s_@@_mark ##1 \s_@@_stop \s_@@_mark ##2 \s_@@_nil
- = \s_@@_mark \@@_split_active_auxii:w
- \s_@@_mark ##3 \s_@@_nil
- #2 \s_@@_mark \@@_clean_up_active:w
+ = \s_@@_mark \@@_split_active_auxii:w
+ \s_@@_mark ##3 \s_@@_nil
+ #2 \s_@@_mark \@@_clean_up_active:w
{
\msg_expandable_error:nn
{ keyval } { misplaced-equals-sign }
diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index eef30010e..10b027dc0 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -1377,7 +1377,7 @@
% in the input stream.
% \begin{macrocode}
\cs_new_protected:Npn \@@_break_true:w
- #1 \@@_break_point:TF #2 #3 {#2}
+ #1 \@@_break_point:TF #2 #3 {#2}
\cs_new_protected:Npn \@@_break_point:TF #1 #2 { #2 }
% \end{macrocode}
% \end{macro}
diff --git a/texmf/tex/latex/base/ltluatex.lua b/texmf/tex/latex/base/ltluatex.lua
index fb687a37b..d5806a6a1 100644
--- a/texmf/tex/latex/base/ltluatex.lua
+++ b/texmf/tex/latex/base/ltluatex.lua
@@ -91,11 +91,11 @@ local function msg_format(mod, msg_type, text)
end
return first_head .. " "
.. string_gsub(
- text
- .. "on input line "
- .. tex.inputlineno, "\n", "\n" .. cont .. " "
- )
- .. "\n"
+ text .. "on input line " .. tex.inputlineno,
+ "\n",
+ "\n" .. cont .. " "
+ )
+ .. "\n"
end
local function module_info(mod, text)
texio_write_nl("log", msg_format(mod, "Info", text))
More information about the latex3-commits
mailing list.