latex2e
latex2e copied to clipboard
docstrib doesn't replace @@-module markers in lines added with a <+tag>
Brief outline of the bug
When unpacking a dtx which contains tags with a plus, e.g. like in this dtx
%<@@=test>
% \begin{macrocode}
%<base>\tl_new:N\g_@@_blubA_tl
%<+base>\tl_new:N\g_@@_blubB_tl
% \end{macrocode}
with
\input docstrip.tex
\generate{\file{testbase.sty}{\from{test.dtx}{base}}}
\endbatchfile
Then in the resulting sty @@
marker aren't expanded correctly
%%
\tl_new:N\g__test_blubA_tl
\tl_new:N\g_@@_blubB_tl
I think this lines are missing
\def\plusOption+#1>#2\endLine{%
\maybeMsg{<+#1 . >}%
\Evaluate{#1}%
\def\do##1##2##3{%
\if1\Expr{##2}%
\def\inLine{#2}%<<------new
\replaceModuleInLine %<-------new
\StreamPut##1{\inLine}\fi %<-------changed
}%
\activefiles
}
lines are missing
yep, but also for the %<-...>
case