[latex3-commits] [git/LaTeX3-latex3-latex2e] gh337: Update docstrip.dtx to fix the documentation (16d9372a)
Johannes Braams
texniek at braams.xs4all.nl
Wed Jul 8 23:39:06 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : gh337
Link : https://github.com/latex3/latex2e/commit/16d9372ab66c2e2673008f713a1296133880dc69
>---------------------------------------------------------------
commit 16d9372ab66c2e2673008f713a1296133880dc69
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date: Wed Jul 8 23:39:06 2020 +0200
Update docstrip.dtx to fix the documentation
>---------------------------------------------------------------
16d9372ab66c2e2673008f713a1296133880dc69
base/docstrip.dtx | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/base/docstrip.dtx b/base/docstrip.dtx
index 3bb09c56..ee037470 100644
--- a/base/docstrip.dtx
+++ b/base/docstrip.dtx
@@ -796,8 +796,8 @@
% system, this requires a convention for indicating which functions
% in a code-level module are public and which are private.
%
-% Using \pkg{l3docstrip} allows internal functions to be indicated
-% using a \enquote{two part} system. Within the \texttt{.dtx} file,
+% Using \textsf{l3docstrip} allows internal functions to be indicated
+% using a `two part' system. Within the \texttt{.dtx} file,
% internal functions may be indicated using |@@| in place of the
% module name, for example
% \begin{verbatim}
@@ -808,7 +808,7 @@
% \tl_new:N \l_@@_internal_tl
% \end{verbatim}
%
-% To extract the code using \pkg{l3docstrip}, the \enquote{guard}
+% To extract the code using \textsf{l3docstrip}, the `guard'
% concept used by \textsf{DocStrip} is extended by introduction of
% the syntax \texttt{\%<@@=\meta{module}>}. The \meta{module} name
% then replaces the |@@| when the code is extracted, so that
@@ -2299,8 +2299,8 @@ Z
%
% \begin{macro}{\normalLine}
% \changes{v2.6a}{2020-07-07}{The search-and-replace macro
-% \cs{replaceModuleInLine} added from \textttr{l3docstrip.dtx}
-% (gh/337)}}
+% \cs{replaceModuleInLine} added from \textsf{l3docstrip.dtx}
+% (gh/337)}
% The macro |\normalLine| writes its argument (which has to be
% delimited with |\endLine|) on all active output files i.e.
% those with off-counters equal to zero. It uses the
@@ -2477,7 +2477,7 @@ Z
% \changes{2.3a}{1995/08/20}{Trying to avoid assignments}
% \changes{2.3e}{1996/09/16}{Verbatim mode}
% \changes{v2.6a}{2020-07-07}{Add the @-sign option from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
%
% When the macros that process a line have found that the line
% starts with `\texttt{\%<}', a guard line has been encountered.
@@ -2525,7 +2525,7 @@ Z
\if1\Expr{##2}%
\def\inLine{#2}%
\replaceModuleInLine
- \StreamPut##1{#2\inLine}\fi
+ \StreamPut##1{\inLine}\fi
}%
\activefiles
}
@@ -2751,7 +2751,7 @@ Z
%
% \begin{macro}{\moduleOption}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
%
% In the case where the line starts |%<@|: the defined syntax requires that
% this continues to |%<@@=|. At the moment, we assume that the syntax is
@@ -2767,10 +2767,10 @@ Z
%
% \begin{macro}{\prepareActiveModule}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% \begin{macro}{\replaceModuleInLine}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% Here, we set up to do the search-and-replace when doing the
% extraction. The argument (|#1|) is the replacement text to use,
% or if empty an indicator that no replacement should be done. The
@@ -2778,7 +2778,7 @@ Z
% such that all three end up the same in the output. The string
% |@@@@| is hidden from these replacements by temporarily turning
% it into a pair of letters with different category codes, not
-% produced by \pkg{docstrip}; this allows to get |@@| in the
+% produced by \textsf{docstrip}; this allows to get |@@| in the
% output. The replacement function is initialised as a do-nothing
% for the case where |%<@@=| is never seen.
% \begin{macrocode}
@@ -2805,21 +2805,20 @@ Z
%
% \begin{macro}{\replaceAllIn}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% \begin{macro}{\replaceAllInAuxI}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% \begin{macro}{\replaceAllInAuxII}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% \begin{macro}{\replaceAllInAuxIII}
% \changes{v2.6a}{2020-07-07}{Macro added from
-% \texttt{l3docstrip.dtx} (gh/337)}
+% \textsf{l3docstrip.dtx} (gh/337)}
% The code here is a simple search-and-replace routine for a macro
% |#1|, replacing |#2| by |#3|. As set up here, there is an
% assumption that nothing is going to be expandable, which is
-% reasonable as \pkg{l3docstrip} deals with \enquote{string}
-% material.
+% reasonable as \textsf{l3docstrip} deals with `string' material.
% \begin{macrocode}
\long\def\replaceAllIn#1#2#3{%
\long\def\tempa##1##2#2{%
More information about the latex3-commits
mailing list.