[latex3-commits] [latex3/latex3] main: Adapt `l3doc` for `ltcmd` change to handling of newlines (bb30f6734)

github at latex-project.org github at latex-project.org
Thu Mar 28 15:33:25 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/bb30f673440bfa4f24746a92aea3f02e306f62ee

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

commit bb30f673440bfa4f24746a92aea3f02e306f62ee
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Wed Mar 27 12:49:46 2024 +0800

    Adapt `l3doc` for `ltcmd` change to handling of newlines
    
    See latex3/latex2e#1304.


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

bb30f673440bfa4f24746a92aea3f02e306f62ee
 l3kernel/CHANGELOG.md | 2 ++
 l3kernel/l3doc.dtx    | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index d1bf5e43a..f1c2f822b 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -9,6 +9,8 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Changed
 - Expand object names in `\pdf_object_...` functions (issue \#1521)
+- Adapt `l3doc` for `ltcmd` change to handling of newlines
+  (see latex3/latex2e\#1304)
 
 ### Fixed
 - Global assignment to constant in `\cctab_const:Nn` (issue \#1508)
diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index a48a24df2..d69148022 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -2181,6 +2181,8 @@ and all files in that bundle must be distributed together.
       {
         \tl_remove_all:Ne \l_@@_tmpa_tl
           { \iow_char:N \^^M \c_percent_str }
+        \tl_remove_all:Ne \l_@@_tmpa_tl
+          { \token_to_str:N \obeyedline \c_space_tl \c_percent_str }
         \tl_remove_all:Ne \l_@@_tmpa_tl { \tl_to_str:n { ^ ^ A } }
         \tl_remove_all:Ne \l_@@_tmpa_tl { \iow_char:N \^^I }
         \tl_remove_all:Ne \l_@@_tmpa_tl { \iow_char:N \^^M }





More information about the latex3-commits mailing list.