summaryrefslogtreecommitdiff
path: root/macros/latex/base/ltmiscen.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/base/ltmiscen.dtx')
-rw-r--r--macros/latex/base/ltmiscen.dtx9
1 files changed, 5 insertions, 4 deletions
diff --git a/macros/latex/base/ltmiscen.dtx b/macros/latex/base/ltmiscen.dtx
index 2a88438dee..61e44e5e91 100644
--- a/macros/latex/base/ltmiscen.dtx
+++ b/macros/latex/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,8 +381,9 @@
% 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.1r}{2019/08/27}{fix to special comment catcodes (gh/202)}
% \begin{macrocode}
- {\ifx!#2!\expandafter\dont@add@percent@to@temptokena\else
+ {\expandafter\ifx\expandafter X\detokenize{#2}X\expandafter\dont@add@percent@to@temptokena\else
\expandafter\do@add@percent@to@temptokena\fi{#1}}
% \end{macrocode}
%
@@ -401,8 +402,8 @@
% \begin{macrocode}
\begingroup
\catcode`\%=12
-\long\gdef\do@add@percent@to@temptokena#1{%
- \@temptokena\expandafter{#1%^^A
+\catcode`\^^A=14
+\long\gdef\do@add@percent@to@temptokena#1{\@temptokena\expandafter{#1%^^A
% \end{macrocode}
% Can't be on the same line as the |%| --- see above.
% \begin{macrocode}