Skip to content

Commit

Permalink
Correct expansion of \@@_print_args:nn argument
Browse files Browse the repository at this point in the history
Fixes #1221
  • Loading branch information
PhelypeOleinik authored and josephwright committed Jan 3, 2024
1 parent c40d617 commit 42b77b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-01-03 Phelype Oleinik <[email protected]>
* lthooks.dtx:
Correct expansion of \@@_print_args:nn argument (gh/1221).

2023-12-30 Frank Mittelbach <[email protected]>
* doc.dtx (subsection{Macros surrounding the `definition parts'}):
Use \@noligs from the LaTeX kernel, so that the upquote
Expand Down Expand Up @@ -189,7 +193,7 @@ All changes above are only part of the development branch for the next release.
* ltfiles.dtx
Allow for pipes in \input, etc.

2023-06-16 Phelype Oleinik <Joseph.Wright@latex-project.org>
2023-06-16 Phelype Oleinik <phelype.oleinik@latex-project.org>

* lthooks.dtx, ltcmdhooks.dtx
Correct some rollback labels and dates.
Expand Down
8 changes: 5 additions & 3 deletions base/lthooks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
%%% From File: lthooks.dtx
%
% \begin{macrocode}
\def\lthooksversion{v1.1f}
\def\lthooksdate{2023/12/26}
\def\lthooksversion{v1.1g}
\def\lthooksdate{2024/01/03}
% \end{macrocode}
%
%<*driver>
Expand Down Expand Up @@ -6010,6 +6010,8 @@
%
% \changes{v1.1a}{2023/04/06}
% {Changes to add hook arguments (hook-args).}
% \changes{v1.1g}{2024/01/03}
% {Fix expansion of \cs{@@_print_args:nn} argument (gh/1221).}
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2023/06/01}{\@@_log:nN}
%<latexrelease> {Hooks~with~args}
Expand All @@ -6029,7 +6031,7 @@
hook~'#1'
\@@_if_disabled:nF {#1}
{
\exp_args:Nf \@@_print_args:nn {#1}
\exp_args:Nne \@@_print_args:nn {#1}
{
\int_eval:n
{ \str_count:e { \@@_parameter:n {#1} } / 3 }
Expand Down

0 comments on commit 42b77b4

Please sign in to comment.