[latex3-commits] [git/LaTeX3-latex3-hyperref] main: allow some calc syntax in \hspace (3976945)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Feb 8 16:59:26 CET 2021
Repository : https://github.com/latex3/hyperref
On branch : main
Link : https://github.com/latex3/hyperref/commit/3976945596f32031a2781e835e2af241cdf68b0d
>---------------------------------------------------------------
commit 3976945596f32031a2781e835e2af241cdf68b0d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Feb 8 16:59:26 2021 +0100
allow some calc syntax in \hspace
>---------------------------------------------------------------
3976945596f32031a2781e835e2af241cdf68b0d
hyperref.dtx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 3ad5ded..32f0ffd 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -2815,7 +2815,7 @@
% \cs{HyPsd at hyspacetest} replaces the \cs{hspace} by a space, if
% the length is greater than zero.
% \begin{macrocode}
-\def\HyPsd at hspacetest#1{\ifdim#1>\z@\space\fi}
+\def\HyPsd at hspacetest#1{\ifdim\dimexpr#1\relax>\z@\space\fi}
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.