Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yukai Chou <[email protected]>
  • Loading branch information
FrankMittelbach and muzimuzhi authored Dec 23, 2024
1 parent 5337573 commit fa4ef17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/doc/ltnews41.tex
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ \subsection{\pkg{docstrip}:\ Error if \texttt{.ins} file is problematical}

If a file to generate had the same name as a preamble declared with
\cs{declarepreamble} the preamble definition was overwritten because
the macro used to stored it was reused for denoting the output
the macro used to store it was reused for denoting the output
stream. The same problem happened with postambles declared with
\cs{declarepostamble}. This is now detected and an error message is
issued. To circumvent the issue in that case, simply use a different
Expand Down
4 changes: 2 additions & 2 deletions base/docstrip.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -3029,7 +3029,7 @@ Z
\def\@fileX#1#2{%
% \end{macrocode}
% If the csname used for the stream has already been defined, e.g.,
% as a preamble or postamble or for some other purpose, chances are
% as a preamble or postamble or for some other purposes, chances are
% that turning it into a stream number will break something. We
% therefore generate an error and show the current definition.
% \changes{v2.6c}{2024-12-23}{Check that stream macro is not already
Expand All @@ -3052,7 +3052,7 @@ Z
\string\file{\@stripstring#1} is used}%
\fi
\ifx\curout\currentpostamble
\errmessage{Declared postamble name \string#1 not allowed if
\errmessage{Declared postamble name \string#1 not allowed if
\string\file{\@stripstring#1} is used}%
\fi
% \end{macrocode}
Expand Down

0 comments on commit fa4ef17

Please sign in to comment.