chiark / gitweb /
poetry.dtx (\maybe@unskip): Match the version in `mdwtab'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 01:00:14 +0000 (02:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 16:36:44 +0000 (17:36 +0100)
I don't actually know why these were different.  Both versions appear to
have been there forever, though it's clear that these packages had lives
before they were checked into CVS in 2002.  Obviously, since these have
the same name, they should have the same definition.  The `mdwtab'
version is more robust (checking `\ifhmode' before applying `\hskip'),
and slightly more refined (using `\m@ne' rather than `-\@ne'), so I'm
going with that one.

poetry.dtx

index 4cf859662b6007cef2e654b4a18a9206f7b4f23d..3b0ade1d779a96337cd9cc7264289827a1463c04 100644 (file)
 % a \<skip> by a \<number> kills off the stretch.
 %
 %    \begin{macrocode}
-\def\@maybe@unskip{\hskip-\@ne\lastskip\relax}
+\def\@maybe@unskip{\ifhmode\hskip\m@ne\lastskip\relax\fi}
 %    \end{macrocode}
 %
 % \end{macro}