[latex3-commits] [git/latex3] master: Fix \spacefactor after \cs or \cmd (e56148c)

Bruno Le Floch bruno at le-floch.fr
Mon Nov 27 21:24:39 CET 2017


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/e56148c65a0263efbc725a869ba4d1e354f41b5f

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

commit e56148c65a0263efbc725a869ba4d1e354f41b5f
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Mon Nov 27 15:24:39 2017 -0500

    Fix \spacefactor after \cs or \cmd


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

e56148c65a0263efbc725a869ba4d1e354f41b5f
 l3kernel/l3doc.dtx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index fcbf024..43cec98 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -1867,7 +1867,9 @@ and all files in that bundle must be distributed together.
 %   rescanning the whole argument.  Then typeset the command in
 %   \tn{verbatim at font}, after turning it to harmless characters if
 %   needed (and keeping the underscore breakable); in any case, spaces
-%   must be turned into \tn{@xobeysp}.  Finally, produce an index entry.
+%   must be turned into \tn{@xobeysp} and we must use \tn{@} to avoid
+%   longer spaces after a control sequence that ends for instance with a
+%   colon (empty signature).  Finally, produce an index entry.
 %   Indexing is suppressed when \cs{l_@@_cmd_noindex_bool} is true.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_cmd:nn #1#2
@@ -1896,6 +1898,7 @@ and all files in that bundle must be distributed together.
         }
       \tl_replace_all:Nnn \l_@@_cmd_tl { ~ } { \@xobeysp }
       \l_@@_cmd_tl
+      \@
     }
     \bool_if:NF \l_@@_cmd_noindex_bool
       {





More information about the latex3-commits mailing list