diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index f4beaa0ac6..37cefd1942 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1328 2023-05-07 14:40:45Z karl $ +% $Id: tex4ht-4ht.tex 1332 2023-05-18 14:17:52Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -3712,10 +3712,11 @@ Support for links from the \Verb|\cref| command. \def\:tempa#1#2{\bgroup% \def\rEfLiNK##1##2{\Link{##1}{}}% \def\XRrEfLiNK[##1]##2##3{\Link[##1]{##2}{}}% handle links from Xr and Xr-hyper - \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}% \cref@getlabel{#2}{\@templabel}% - #1{\@templabel}{}{}% - \EndLink\egroup% + #1{% add links only around reference numbers, not the previous text, because it can contain punctuation + \expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}% + \@templabel\EndLink}{}{}% + \egroup% }% \HLet\@@@setcref=\:tempa |