[latex3-commits] [latex3/latex3] gh1258: code layout (101dbb451)

github at latex-project.org github at latex-project.org
Thu Aug 10 11:48:10 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : gh1258
Link       : https://github.com/latex3/latex3/commit/101dbb4514a9da07b447eec1610afb721e80cfc9

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

commit 101dbb4514a9da07b447eec1610afb721e80cfc9
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Thu Aug 10 10:48:10 2023 +0100

    code layout


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

101dbb4514a9da07b447eec1610afb721e80cfc9
 l3kernel/l3doc.dtx | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index 2e7cf3301..1f91e2f63 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -2758,18 +2758,20 @@ and all files in that bundle must be distributed together.
 %
 %   Set long variant lists in a parbox, short lists set natural length.
 %    \begin{macrocode}
-         \dim_compare:nNnTF {\wd\l_tmpa_box}>{.4\columnwidth}
+        \dim_compare:nNnTF { \box_wd:N \l_tmpa_box } > { .4\columnwidth }
           {
-          \parbox[t]{.4\columnwidth}
-             {\raggedright
-               \hbox_unpack_drop:N\l_tmpa_box
-               \textrm)
-               \bool_if:NT #2 { \@@_typeset_TF: }
-             }
+            \parbox[t]{.4\columnwidth}
+              {
+                \raggedright
+                \hbox_unpack_drop:N \l_tmpa_box
+                \textrm)
+                \bool_if:NT #2 { \@@_typeset_TF: }
+              }
           }
-          { \hbox_unpack_drop:N\l_tmpa_box
-             \textrm)
-             \bool_if:NT #2 { \@@_typeset_TF: }
+          {
+            \hbox_unpack_drop:N \l_tmpa_box
+            \textrm)
+            \bool_if:NT #2 { \@@_typeset_TF: }
           }
       }
     \@@_typeset_expandability:





More information about the latex3-commits mailing list.