From eb1e0a22fee869ae52e26bf9cd370da5a15358f3 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 11 Sep 2010 22:56:04 +0000
Subject: hyperref update (11sep10)

git-svn-id: svn://tug.org/texlive/trunk@19658 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/hdviwind.def | 54 ++++++++++++++++++-----
 1 file changed, 44 insertions(+), 10 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hyperref/hdviwind.def')

diff --git a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
index 899b9c77bea..30d960f878f 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
@@ -29,7 +29,7 @@
 %% given in the file `manifest.txt'.
 %%
 \ProvidesFile{hdviwind.def}
-  [2010/06/18 v6.81g
+  [2010/09/11 v6.81m
   Hyperref driver for dviwindo]
 \begingroup
   \@ifundefined{headerps@out}{}{%
@@ -179,9 +179,12 @@
 }
 \def\hyper@link#1#2#3{%
   \Hy@VerboseLinkStart{#1}{#2}%
-  \setbox\@tempboxa=\color@hbox #3\color@endbox
   \leavevmode
   \ifHy@raiselinks
+    \Hy@SaveSpaceFactor
+    \Hy@SaveSavedSpaceFactor
+    \sbox\@tempboxa{\Hy@RestoreSpaceFactor#3}%
+    \Hy@RestoreSavedSpaceFactor
     \@linkdim\dp\@tempboxa
     \lower\@linkdim\hbox{%
       \special{button: %
@@ -189,19 +192,24 @@
         \number\ht\@tempboxa\space
         #2%
       }%
-      \expandafter\Hy@colorlink\csname @#1color\endcsname#3%
+      \expandafter\Hy@colorlink\csname @#1color\endcsname
+      \Hy@RestoreSpaceFactor
+      #3%
+      \Hy@SaveSpaceFactor
       \Hy@endcolorlink
     }%
     \@linkdim\ht\@tempboxa
     \advance\@linkdim by -6.5\p@
     \raise\@linkdim\hbox{}%
+    \Hy@RestoreSpaceFactor
   \else
     \special{button: %
       \number\wd\@tempboxa\space
       \number\ht\@tempboxa\space
       #2%
     }%
-    \expandafter\Hy@colorlink\csname @#1color\endcsname#3%
+    \expandafter\Hy@colorlink\csname @#1color\endcsname
+    #3%
     \Hy@endcolorlink
   \fi
 }
@@ -209,8 +217,11 @@
   \begingroup
     \hyper@chars
     \leavevmode
-    \setbox\@tempboxa=\color@hbox #1\color@endbox
     \ifHy@raiselinks
+      \Hy@SaveSpaceFactor
+      \Hy@SaveSavedSpaceFactor
+      \sbox\@tempboxa{\Hy@RestoreSpaceFactor#1}%
+      \Hy@RestoreSavedSpaceFactor
       \@linkdim\dp\@tempboxa
       \lower\@linkdim\hbox{%
         \special{button: %
@@ -219,11 +230,16 @@
           launch: \wwwbrowser\space
           #2%
         }%
-        \Hy@colorlink\@urlcolor#1\Hy@endcolorlink
+        \Hy@colorlink\@urlcolor
+          \Hy@RestoreSpaceFactor
+          #1%
+          \Hy@SaveSpaceFactor
+        \Hy@endcolorlink
       }%
       \@linkdim\ht\@tempboxa
       \advance\@linkdim by -6.5\p@
       \raise\@linkdim\hbox{}%
+      \Hy@RestoreSpaceFactor
     \else
       \special{button: %
         \number\wd\@tempboxa\space
@@ -239,8 +255,11 @@
   \begingroup
     \hyper@chars
     \leavevmode
-    \setbox\@tempboxa=\color@hbox #1\color@endbox
     \ifHy@raiselinks
+      \Hy@SaveSpaceFactor
+      \Hy@SaveSavedSpaceFactor
+      \sbox\@tempboxa{\Hy@RestoreSpaceFactor#1}%
+      \Hy@RestoreSavedSpaceFactor
       \@linkdim\dp\@tempboxa
       \lower\@linkdim\hbox{%
         \special{button: %
@@ -249,11 +268,16 @@
           #3,%
           file: #2%
         }%
-        \Hy@colorlink\@filecolor#1\Hy@endcolorlink
+        \Hy@colorlink\@filecolor
+          \Hy@RestoreSpaceFactor
+          #1%
+          \Hy@SaveSpaceFactor
+        \Hy@endcolorlink
       }%
       \@linkdim\ht\@tempboxa
       \advance\@linkdim by -6.5\p@
       \raise\@linkdim\hbox{}%
+      \Hy@RestoreSpaceFactor
     \else
       \special{button: %
         \number\wd\@tempboxa\space
@@ -469,10 +493,19 @@
     \literalps@out{H.R}%
   \else
     \leavevmode
+    \Hy@SaveSpaceFactor
     \ifHy@breaklinks
-      \Hy@setouterhbox\pdf@box{\Hy@AllowHyphens#1}%
+      \Hy@setouterhbox\pdf@box{%
+        \Hy@RestoreSpaceFactor
+        \Hy@AllowHyphens#1%
+        \Hy@SaveSpaceFactor
+      }%
     \else
-      \sbox\pdf@box{#1}%
+      \sbox\pdf@box{%
+        \Hy@RestoreSpaceFactor
+        #1%
+        \Hy@SaveSpaceFactor
+      }%
     \fi
     \dimen@\ht\pdf@box
     \ifdim\dp\pdf@box=\z@
@@ -491,6 +524,7 @@
     \else
       \raise\dimen@\hbox{\literalps@out{H.R}}%
     \fi
+    \Hy@RestoreSpaceFactor
   \fi
   \ifx\pdf@type\Hy@DEST
   \else
-- 
cgit v1.2.3

