[latex3-commits] [latex3/latex3] main: Reindent l3experimental codes (1ace0a719)

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/1ace0a7194db6b6b19853cbd3848a12fb16c0147

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

commit 1ace0a7194db6b6b19853cbd3848a12fb16c0147
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Sun Dec 17 22:30:47 2023 +0800

    Reindent l3experimental codes


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

1ace0a7194db6b6b19853cbd3848a12fb16c0147
 l3experimental/l3draw/l3draw-paths.dtx     | 80 +++++++++++++++---------------
 l3experimental/l3draw/l3draw-points.dtx    |  8 +--
 l3experimental/l3draw/l3draw.dtx           |  8 +--
 l3experimental/l3graphics/l3graphics.dtx   | 10 ++--
 l3experimental/l3sys-shell/l3sys-shell.dtx |  2 +-
 l3experimental/xcoffins/xcoffins.dtx       |  6 +--
 l3experimental/xgalley/l3galley.dtx        | 38 +++++++-------
 l3experimental/xgalley/xgalley.dtx         |  2 +-
 8 files changed, 77 insertions(+), 77 deletions(-)

diff --git a/l3experimental/l3draw/l3draw-paths.dtx b/l3experimental/l3draw/l3draw-paths.dtx
index 45f11ed9c..fb4ce8a3d 100644
--- a/l3experimental/l3draw/l3draw-paths.dtx
+++ b/l3experimental/l3draw/l3draw-paths.dtx
@@ -235,9 +235,9 @@
   }
 \cs_new_protected:Npn \@@_path_moveto:nn #1#2
   {
-     \@@_path_update_limits:nn {#1} {#2}
-     \@@_softpath_moveto:nn {#1} {#2}
-     \@@_path_update_last:nn {#1} {#2}
+    \@@_path_update_limits:nn {#1} {#2}
+    \@@_softpath_moveto:nn {#1} {#2}
+    \@@_path_update_last:nn {#1} {#2}
   }
 \cs_new_protected:Npn \draw_path_lineto:n #1
   {
@@ -247,10 +247,10 @@
   }
 \cs_new_protected:Npn \@@_path_lineto:nn #1#2
   {
-     \@@_path_mark_corner:
-     \@@_path_update_limits:nn {#1} {#2}
-     \@@_softpath_lineto:nn {#1} {#2}
-     \@@_path_update_last:nn {#1} {#2}
+    \@@_path_mark_corner:
+    \@@_path_update_limits:nn {#1} {#2}
+    \@@_softpath_lineto:nn {#1} {#2}
+    \@@_path_update_last:nn {#1} {#2}
   }
 \cs_new_protected:Npn \draw_path_curveto:nnn #1#2#3
   {
@@ -265,11 +265,11 @@
   }
 \cs_new_protected:Npn \@@_path_curveto:nnnnnn #1#2#3#4#5#6
   {
-     \@@_path_update_limits:nn {#1} {#2}
-     \@@_path_update_limits:nn {#3} {#4}
-     \@@_path_update_limits:nn {#5} {#6}
-     \@@_softpath_curveto:nnnnnn {#1} {#2} {#3} {#4} {#5} {#6}
-     \@@_path_update_last:nn {#5} {#6}
+    \@@_path_update_limits:nn {#1} {#2}
+    \@@_path_update_limits:nn {#3} {#4}
+    \@@_path_update_limits:nn {#5} {#6}
+    \@@_softpath_curveto:nnnnnn {#1} {#2} {#3} {#4} {#5} {#6}
+    \@@_path_update_last:nn {#5} {#6}
   }
 %    \end{macrocode}
 % \end{macro}
@@ -348,32 +348,32 @@
     \fp_set:Nn \l_@@_path_tmpb_fp { \c_@@_path_curveto_b_fp * #2 }
     \use:e
       {
-         \@@_path_mark_corner:
-         \@@_path_curveto:nnnnnn
-           {
-             \fp_to_dim:n
-               {
-                   \c_@@_path_curveto_a_fp * \g_@@_path_lastx_dim
-                 + \l_@@_path_tmpa_fp
-               }
-           }
-           {
-             \fp_to_dim:n
-               {
-                   \c_@@_path_curveto_a_fp * \g_@@_path_lasty_dim
-                 + \l_@@_path_tmpb_fp
-               }
-           }
-           {
-             \fp_to_dim:n
-               { \c_@@_path_curveto_a_fp * #3 + \l_@@_path_tmpa_fp }
-           }
-           {
-             \fp_to_dim:n
-               { \c_@@_path_curveto_a_fp * #4 + \l_@@_path_tmpb_fp }
-           }
-           {#3}
-           {#4}
+        \@@_path_mark_corner:
+        \@@_path_curveto:nnnnnn
+          {
+            \fp_to_dim:n
+              {
+                  \c_@@_path_curveto_a_fp * \g_@@_path_lastx_dim
+                + \l_@@_path_tmpa_fp
+              }
+          }
+          {
+            \fp_to_dim:n
+              {
+                  \c_@@_path_curveto_a_fp * \g_@@_path_lasty_dim
+                + \l_@@_path_tmpb_fp
+              }
+          }
+          {
+            \fp_to_dim:n
+              { \c_@@_path_curveto_a_fp * #3 + \l_@@_path_tmpa_fp }
+          }
+          {
+            \fp_to_dim:n
+              { \c_@@_path_curveto_a_fp * #4 + \l_@@_path_tmpb_fp }
+          }
+          {#3}
+          {#4}
       }
   }
 \fp_const:Nn \c_@@_path_curveto_a_fp { 1 / 3 }
@@ -416,7 +416,7 @@
           { \fp_eval:n {#2} }
           { \fp_to_dim:n {#3} }
           { \fp_to_dim:n {#4} }
-       }
+      }
   }
 \cs_new_protected:Npn \@@_path_arc:nnnn #1#2#3#4
   {
@@ -864,7 +864,7 @@
         \@@_path_reset_limits:
       }
       { \@@_path_use:n { #1 , clear } }
-   }
+  }
 %    \end{macrocode}
 %   Map over the actions and set up the data: mainly just booleans,
 %   but with the possibility to cover more complex cases. The business end
diff --git a/l3experimental/l3draw/l3draw-points.dtx b/l3experimental/l3draw/l3draw-points.dtx
index 22e4d5f50..47dbdc2d9 100644
--- a/l3experimental/l3draw/l3draw-points.dtx
+++ b/l3experimental/l3draw/l3draw-points.dtx
@@ -987,9 +987,9 @@
   {
     \draw_point:n
       {
-             #1 * \l_@@_xvec_x_dim
-           + #2 * \l_@@_yvec_x_dim
-           + #3 * \l_@@_zvec_x_dim
+            #1 * \l_@@_xvec_x_dim
+          + #2 * \l_@@_yvec_x_dim
+          + #3 * \l_@@_zvec_x_dim
         ,
             #1 * \l_@@_xvec_y_dim
           + #2 * \l_@@_yvec_y_dim
@@ -1018,7 +1018,7 @@
       {
         cosd(#1) * (#2) * \l_@@_xvec_x_dim ,
         sind(#1) * (#3) * \l_@@_yvec_y_dim
-     }
+      }
   }
 \cs_generate_variant:Nn \@@_draw_vec_polar:nnn { e }
 %    \end{macrocode}
diff --git a/l3experimental/l3draw/l3draw.dtx b/l3experimental/l3draw/l3draw.dtx
index a4ad36c4f..030266636 100644
--- a/l3experimental/l3draw/l3draw.dtx
+++ b/l3experimental/l3draw/l3draw.dtx
@@ -50,10 +50,10 @@
 \newcommand*\demo at common{%
   \setkeys{lst}
     {%
-       basicstyle   = \small\ttfamily,
-       basewidth    = 0.51em,
-       gobble       = 5,
-       language     = [LaTeX]{TeX},
+      basicstyle   = \small\ttfamily,
+      basewidth    = 0.51em,
+      gobble       = 5,
+      language     = [LaTeX]{TeX},
     }%
 }
 \newcommand*\demo at input{%
diff --git a/l3experimental/l3graphics/l3graphics.dtx b/l3experimental/l3graphics/l3graphics.dtx
index 5a45b88d9..fd786f96e 100644
--- a/l3experimental/l3graphics/l3graphics.dtx
+++ b/l3experimental/l3graphics/l3graphics.dtx
@@ -237,7 +237,7 @@
       { art , bleed , crop , media , trim }
       {
         \tl_set:Ne \l_@@_pagebox_tl
-           { \l_keys_choice_tl box }
+          { \l_keys_choice_tl box }
       } ,
     pagebox .initial:n =
       crop ,
@@ -536,8 +536,8 @@
             \exp_args:Ne \str_tail:n
               { \str_casefold:V \l_@@_ext_str }
           }
-       }
-       { \@@_include_auxi:e { \l_@@_type_str } }
+      }
+      { \@@_include_auxi:e { \l_@@_type_str } }
   }
 \cs_new_protected:Npn \@@_include_auxi:n #1
   {
@@ -553,7 +553,7 @@
       {
         \tl_set_eq:NN \l_@@_final_name_str \l_@@_full_name_str
         \str_set:Ne \l_@@_full_name_str
-         { \exp_args:NV \__kernel_file_name_quote:n \l_@@_full_name_str }
+          { \exp_args:NV \__kernel_file_name_quote:n \l_@@_full_name_str }
         \exp_args:NnV \use:c { @@_backend_getbb_ #1 :n }
           \l_@@_full_name_str
         \seq_gput_right:NV \g_@@_record_seq \l_@@_final_name_str
@@ -601,7 +601,7 @@
     \box_set_dp:Nn \l_@@_internal_box { 0pt }
     \box_set_ht:Nn \l_@@_internal_box
       { \l_@@_ury_dim - \l_@@_lly_dim }
-     \box_set_wd:Nn \l_@@_internal_box
+    \box_set_wd:Nn \l_@@_internal_box
       { \l_@@_urx_dim - \l_@@_llx_dim }
     \box_use_drop:N \l_@@_internal_box
   }
diff --git a/l3experimental/l3sys-shell/l3sys-shell.dtx b/l3experimental/l3sys-shell/l3sys-shell.dtx
index 4c05998e3..08795b5d0 100644
--- a/l3experimental/l3sys-shell/l3sys-shell.dtx
+++ b/l3experimental/l3sys-shell/l3sys-shell.dtx
@@ -201,7 +201,7 @@
         \token_if_eq_meaning:NNTF #1 /
           { \c_backslash_str }
           {#1}
-         \@@_path_to_win:N
+        \@@_path_to_win:N
       }
   }
 %    \end{macrocode}
diff --git a/l3experimental/xcoffins/xcoffins.dtx b/l3experimental/xcoffins/xcoffins.dtx
index 37624aeef..16afa92ed 100644
--- a/l3experimental/xcoffins/xcoffins.dtx
+++ b/l3experimental/xcoffins/xcoffins.dtx
@@ -859,9 +859,9 @@
 %    \begin{macrocode}
 \NewDocumentCommand \TypesetCoffin
   {
-     m
-     > { \SplitArgument { 1 } { , } } O { H , l }
-     > { \SplitArgument { 1 } { , } } D ( ) { 0 pt , 0 pt }
+    m
+    > { \SplitArgument { 1 } { , } } O { H , l }
+    > { \SplitArgument { 1 } { , } } D ( ) { 0 pt , 0 pt }
   }
   { \coffin_typeset:Nnnnn #1 #2 #3 }
 %    \end{macrocode}
diff --git a/l3experimental/xgalley/l3galley.dtx b/l3experimental/xgalley/l3galley.dtx
index 647e99754..6e224ac4c 100644
--- a/l3experimental/xgalley/l3galley.dtx
+++ b/l3experimental/xgalley/l3galley.dtx
@@ -1323,27 +1323,27 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_display_penalty:N #1
   {
-     \tl_if_empty:NF #1
-       {
-         \tl_gput_right:Ne \g_galley_restore_running_tl
-           {
-             \int_gset:Nn \exp_not:N \g_galley_penalty_int
-               { \int_use:N \g_galley_penalty_int }
-           }
-         \int_gset:Nn \g_galley_penalty_int {#1}
-       }
+    \tl_if_empty:NF #1
+      {
+        \tl_gput_right:Ne \g_galley_restore_running_tl
+          {
+            \int_gset:Nn \exp_not:N \g_galley_penalty_int
+              { \int_use:N \g_galley_penalty_int }
+          }
+        \int_gset:Nn \g_galley_penalty_int {#1}
+      }
   }
 \cs_new_protected:Npn \@@_display_vspace:N #1
   {
-     \tl_if_empty:NF #1
-       {
-         \tl_gput_right:Ne \g_galley_restore_running_tl
-           {
-             \skip_gset:Nn \exp_not:N \g_galley_vspace_skip
-               { \skip_use:N \g_galley_vspace_skip }
-           }
-         \skip_gset:Nn \g_galley_vspace_int {#1}
-       }
+    \tl_if_empty:NF #1
+      {
+        \tl_gput_right:Ne \g_galley_restore_running_tl
+          {
+            \skip_gset:Nn \exp_not:N \g_galley_vspace_skip
+              { \skip_use:N \g_galley_vspace_skip }
+          }
+        \skip_gset:Nn \g_galley_vspace_int {#1}
+      }
   }
 %    \end{macrocode}
 %   The \cs{par} token at the end of the display needs to go in at the same
@@ -1896,7 +1896,7 @@
         \seq_get_right:NNF \g_@@_tmpb_seq \l_@@_tmp_tl
           { \tl_clear:N \l_@@_tmp_tl }
         \tl_if_empty:NT \l_@@_tmp_tl
-         { \tl_set:Nn \l_@@_tmp_tl { 0pt } }
+          { \tl_set:Nn \l_@@_tmp_tl { 0pt } }
         \int_set:Nn \l_@@_tmp_int
           {
               \seq_count:N \g_@@_tmpa_seq
diff --git a/l3experimental/xgalley/xgalley.dtx b/l3experimental/xgalley/xgalley.dtx
index 956048114..9a35b73e4 100644
--- a/l3experimental/xgalley/xgalley.dtx
+++ b/l3experimental/xgalley/xgalley.dtx
@@ -829,7 +829,7 @@
     lines        : integer = 1
   }
 \DeclareTemplateInterface { parshape } { initial } { 0 }
- {
+  {
     indent       : length  = 0pt  ,
     on-left-side : boolean = true ,
     lines        : integer = 2





More information about the latex3-commits mailing list.