Skip to content

Commit

Permalink
add space-sensitive test for \patchcmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Jan 8, 2025
1 parent 53a8457 commit 6da5bce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file modified t/expansion/etoolbox.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions t/expansion/etoolbox.tex
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ \subsection{Patching}
prepending to paramacro: \pretocmd\paramacro{Pre. }{ok}{fail}\newline
\paramacro{first}{second}

\def\spaceymacro{{Bold to \bfseries italic}}
\spaceymacro
\patchcmd\spaceymacro{\bfseries}{\it}{}{}
\spaceymacro

\subsection{Boolean Flags}

\newbool{boolvar}
Expand Down
4 changes: 4 additions & 0 deletions t/expansion/etoolbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ xABYZ.</p>
<para xml:id="S3.SS4.p7">
<p>prepending to paramacro: ok<break/>Pre. first and second. Post</p>
</para>
<para xml:id="S3.SS4.p8">
<p>Bold to <text font="bold">italic</text>
Bold to <text font="italic">italic</text></p>
</para>
</subsection>
<subsection inlist="toc" xml:id="S3.SS5">
<tags>
Expand Down

0 comments on commit 6da5bce

Please sign in to comment.