[latex3-commits] [git/LaTeX3-latex3-latex2e] master: adjust comment catcode use for issue #202 (f4a571d0)

David Carlisle d.p.carlisle at gmail.com
Sun Nov 10 10:39:42 CET 2019


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

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

commit f4a571d053ddd559a07f13155bd2503de8deff13
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Nov 10 09:39:42 2019 +0000

    adjust comment catcode use for issue #202


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

f4a571d053ddd559a07f13155bd2503de8deff13
 base/changes.txt  | 4 ++++
 base/ltmiscen.dtx | 7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index b07f923c..0f2da939 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -8,6 +8,10 @@ are not part of the distribution.
 # 2019-10-01 PL 3 Release
 #########################
 
+2019-11-10  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltmiscen.dtx: fix special comment catcodes (gh/202)
+
 2019-11-09  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* ltfiles.dtx: More filename normalisation: expand before
diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx
index 2a88438d..bf3be0b3 100644
--- a/base/ltmiscen.dtx
+++ b/base/ltmiscen.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmiscen.dtx}
-             [2019/10/25 v1.1q LaTeX Kernel (Misc. Environments)]
+             [2019/11/10 v1.1r LaTeX Kernel (Misc. Environments)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltmiscen.dtx}
@@ -381,6 +381,7 @@
 %   group the braces aren't stripped. The |\expandafter| then expands
 %   this extra token away again.
 % \changes{v1.1q}{2019/10/25}{Allow unbalanced conditionals in \texttt{\#1} (gh/202)}
+% \changes{v1.1p}{2019/08/27}{fix to special comment catcodes (gh/202)}
 %    \begin{macrocode}
     {\ifx!#2!\expandafter\dont at add@percent at to@temptokena\else
              \expandafter\do at add@percent at to@temptokena\fi{#1}}
@@ -401,8 +402,8 @@
 %    \begin{macrocode}
 \begingroup
 \catcode`\%=12
-\long\gdef\do at add@percent at to@temptokena#1{%
-  \@temptokena\expandafter{#1%^^A
+\catcode`\^^A=14
+\long\gdef\do at add@percent at to@temptokena#1{\@temptokena\expandafter{#1%^^A
 %    \end{macrocode}
 %    Can't be on the same line as the |%| --- see above.
 %    \begin{macrocode}





More information about the latex3-commits mailing list