[latex3-commits] [latex3/latex3] main: Correctly indent code in quotes (fixes #945) (3231966d5)
github at latex-project.org
github at latex-project.org
Tue May 23 10:15:52 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/3231966d58b64e483272f815dcfb04115a0a43e5
>---------------------------------------------------------------
commit 3231966d58b64e483272f815dcfb04115a0a43e5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue May 23 09:09:57 2023 +0100
Correctly indent code in quotes (fixes #945)
>---------------------------------------------------------------
3231966d58b64e483272f815dcfb04115a0a43e5
l3kernel/l3fp-extended.dtx | 6 ++---
l3kernel/l3kernel-functions.dtx | 4 +--
l3kernel/l3seq.dtx | 56 ++++++++++++++++++++---------------------
3 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/l3kernel/l3fp-extended.dtx b/l3kernel/l3fp-extended.dtx
index f11d8f5f2..5c52126b8 100644
--- a/l3kernel/l3fp-extended.dtx
+++ b/l3kernel/l3fp-extended.dtx
@@ -172,10 +172,10 @@
% \subsection{Multiplying a fixed point number by a short one}
%
% \begin{macro}[EXP]{\@@_fixed_mul_short:wwn}
-% \begin{syntax}
+% \begin{syntax}\parskip=0pt\obeylines
% \cs{@@_fixed_mul_short:wwn}
-% \ \ \Arg{a_1} \Arg{a_2} \Arg{a_3} \Arg{a_4} \Arg{a_5} \Arg{a_6} |;|
-% \ \ \Arg{b_0} \Arg{b_1} \Arg{b_2} |;| \Arg{continuation}
+% | |\Arg{a_1} \Arg{a_2} \Arg{a_3} \Arg{a_4} \Arg{a_5} \Arg{a_6} |;|
+% | |\Arg{b_0} \Arg{b_1} \Arg{b_2} |;| \Arg{continuation}
% \end{syntax}
% Computes the product $c=ab$ of $a=\sum_i \meta{a_i} 10^{-4i}$ and
% $b=\sum_i \meta{b_i} 10^{-4i}$, rounds it to the closest multiple of
diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index f97ddf0a3..5a262ec77 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -93,9 +93,9 @@
% \end{function}
%
% \begin{function}{\__kernel_chk_tl_type:NnnT}
-% \begin{syntax}
+% \begin{syntax}\parskip=0pt\obeylines
% \cs{__kernel_chk_tl_type:NnnT} \meta{control sequence} \Arg{specific type} \\
-% \ \ \Arg{reconstruction} \Arg{true code}
+% | |\Arg{reconstruction} \Arg{true code}
% \end{syntax}
% Helper to test that the \meta{control sequence} is a variable of the
% given \meta{specific type} of token list. Produces suitable error
diff --git a/l3kernel/l3seq.dtx b/l3kernel/l3seq.dtx
index 3044da987..75d9a8ed5 100644
--- a/l3kernel/l3seq.dtx
+++ b/l3kernel/l3seq.dtx
@@ -931,9 +931,9 @@
%
% Adding an \meta{item} to a set \meta{seq~var} can be done by appending
% it to the \meta{seq~var} if it is not already in the \meta{seq~var}:
-% \begin{quote}\ttfamily
-% \cs{seq_if_in:NnF} \meta{seq~var} \Arg{item} \\
-% \ \ \{ \cs{seq_put_right:Nn} \meta{seq~var} \Arg{item} \}
+% \begin{quote}\ttfamily\parskip=0pt\obeylines
+% \cs{seq_if_in:NnF} \meta{seq~var} \Arg{item}
+% | |\{ \cs{seq_put_right:Nn} \meta{seq~var} \Arg{item} \}
% \end{quote}
% Removing an \meta{item} from a set \meta{seq~var} can be done using
% \cs{seq_remove_all:Nn},
@@ -944,13 +944,13 @@
% The intersection of two sets \meta{seq~var_1} and \meta{seq~var_2} can
% be stored into \meta{seq~var_3} by collecting items of
% \meta{seq~var_1} which are in \meta{seq~var_2}.
-% \begin{quote}\ttfamily
-% \cs{seq_clear:N} \meta{seq~var_3} \\
-% \cs{seq_map_inline:Nn} \meta{seq~var_1} \\
-% \ \ \{ \\
-% \ \ \ \ \cs{seq_if_in:NnT} \meta{seq~var_2} \{\#1\} \\
-% \ \ \ \ \ \ \{ \cs{seq_put_right:Nn} \meta{seq~var_3} \{\#1\} \} \\
-% \ \ \}
+% \begin{quote}\ttfamily\parskip=0pt\obeylines
+% \cs{seq_clear:N} \meta{seq~var_3}
+% \cs{seq_map_inline:Nn} \meta{seq~var_1}
+% | |\{
+% | |\cs{seq_if_in:NnT} \meta{seq~var_2} \{\#1\}
+% | |\{ \cs{seq_put_right:Nn} \meta{seq~var_3} \{\#1\} \}
+% | |\}
% \end{quote}
% The code as written here only works if \meta{seq~var_3} is different
% from the other two sequence variables. To cover all cases, items
@@ -966,13 +966,13 @@
% \cs{seq_remove_duplicates:N} \meta{seq~var_3}
% \end{quote}
% or by adding items to (a copy of) \meta{seq~var_1} one by one
-% \begin{quote}\ttfamily
-% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_1} \\
-% \cs{seq_map_inline:Nn} \meta{seq~var_2} \\
-% \ \ \{ \\
-% \ \ \ \ \cs{seq_if_in:NnF} \meta{seq~var_3} \{\#1\} \\
-% \ \ \ \ \ \ \{ \cs{seq_put_right:Nn} \meta{seq~var_3} \{\#1\} \} \\
-% \ \ \}
+% \begin{quote}\ttfamily\parskip=0pt\obeylines
+% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_1}
+% \cs{seq_map_inline:Nn} \meta{seq~var_2}
+% | |\{
+% | |\cs{seq_if_in:NnF} \meta{seq~var_3} \{\#1\}
+% | |\{ \cs{seq_put_right:Nn} \meta{seq~var_3} \{\#1\} \}
+% | |\}
% \end{quote}
% The second approach is faster than the first when the \meta{seq~var_2}
% is short compared to \meta{seq~var_1}.
@@ -980,10 +980,10 @@
% The difference of two sets \meta{seq~var_1} and \meta{seq~var_2} can
% be stored into \meta{seq~var_3} by removing items of the
% \meta{seq~var_2} from (a copy of) the \meta{seq~var_1} one by one.
-% \begin{quote}\ttfamily
-% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_1} \\
-% \cs{seq_map_inline:Nn} \meta{seq~var_2} \\
-% \ \ \{ \cs{seq_remove_all:Nn} \meta{seq~var_3} \{\#1\} \}
+% \begin{quote}\ttfamily\parskip=0pt\obeylines
+% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_1}
+% \cs{seq_map_inline:Nn} \meta{seq~var_2}
+% | |\{ \cs{seq_remove_all:Nn} \meta{seq~var_3} \{\#1\} \}
% \end{quote}
%
% The symmetric difference of two sets \meta{seq~var_1} and
@@ -992,13 +992,13 @@
% the result as |\l__|\meta{pkg}|_internal_seq|, then the difference
% between \meta{seq~var_2} and \meta{seq~var_1}, and finally
% concatenating the two differences to get the symmetric differences.
-% \begin{quote}\ttfamily
-% \cs{seq_set_eq:NN} |\l__|\meta{pkg}|_internal_seq| \meta{seq~var_1} \\
-% \cs{seq_map_inline:Nn} \meta{seq~var_2} \\
-% \ \ \{ \cs{seq_remove_all:Nn} |\l__|\meta{pkg}|_internal_seq| \{\#1\} \} \\
-% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_2} \\
-% \cs{seq_map_inline:Nn} \meta{seq~var_1} \\
-% \ \ \{ \cs{seq_remove_all:Nn} \meta{seq~var_3} \{\#1\} \} \\
+% \begin{quote}\ttfamily\parskip=0pt\obeylines
+% \cs{seq_set_eq:NN} |\l__|\meta{pkg}|_internal_seq| \meta{seq~var_1}
+% \cs{seq_map_inline:Nn} \meta{seq~var_2}
+% | |\{ \cs{seq_remove_all:Nn} |\l__|\meta{pkg}|_internal_seq| \{\#1\} \}
+% \cs{seq_set_eq:NN} \meta{seq~var_3} \meta{seq~var_2}
+% \cs{seq_map_inline:Nn} \meta{seq~var_1}
+% | |\{ \cs{seq_remove_all:Nn} \meta{seq~var_3} \{\#1\} \}
% \cs{seq_concat:NNN} \meta{seq~var_3} \meta{seq~var_3} |\l__|\meta{pkg}|_internal_seq|
% \end{quote}
%
More information about the latex3-commits
mailing list.