[latex3-commits] [git/LaTeX3-latex3-latex3] master: Better hook for breaking hyperlinks in DVI mode (fixes #570) (d42208d)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat May 4 12:50:03 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/d42208d73424345aa9081882747fcb202584d2b0

>---------------------------------------------------------------

commit d42208d73424345aa9081882747fcb202584d2b0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat May 4 11:50:03 2019 +0100

    Better hook for breaking hyperlinks in DVI mode (fixes #570)
    
    This way we only add a special to a column with some content. Hopefully this works reasonably well and is safe.


>---------------------------------------------------------------

d42208d73424345aa9081882747fcb202584d2b0
 l3kernel/l3drivers-pdf.dtx |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/l3kernel/l3drivers-pdf.dtx b/l3kernel/l3drivers-pdf.dtx
index 8a5ed3e..c489dbc 100644
--- a/l3kernel/l3drivers-pdf.dtx
+++ b/l3kernel/l3drivers-pdf.dtx
@@ -1050,27 +1050,27 @@
 % \end{macro}
 % \end{macro}
 %
-% \begin{macro}{\@startcolumn, \@makecol}
+% \begin{macro}{\@makecol}
 %   Hooks to allow link breaking: something will be needed in format mode
 %   at some stage.
 %    \begin{macrocode}
 %<*package>
-\tl_gput_left:Nn \@startcolumn
-  {
-    \@@_postscript:n
-      {
-        driver.globaldict /driver.brokenlink.rect ~ known
-          { driver.bordertracking.continue }
-        if
-      }
-  }
 \tl_gput_left:Nn \@makecol
   {
-    \vbox_set:Nn \@cclv
+    \box_if_empty:NF \@cclv
       {
-        \vbox_unpack_drop:N \@cclv
-        \@@_postscript:n
-          { driver.bordertracking.endpage }
+        \vbox_set:Nn \@cclv
+          {
+            \@@_postscript:n
+              {
+                driver.globaldict /driver.brokenlink.rect ~ known
+                  { driver.bordertracking.continue }
+                if
+              }
+            \vbox_unpack_drop:N \@cclv
+            \@@_postscript:n
+              { driver.bordertracking.endpage }
+           }
       }
   }
 %</package>





More information about the latex3-commits mailing list