summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithmarshall <keithmarshall>2008-12-28 18:15:05 +0000
committerkeithmarshall <keithmarshall>2008-12-28 18:15:05 +0000
commitddd7feac246d92aa4d851a96866bce8152555ffd (patch)
tree22198b417f002504add83f99d84f3dedcc42bdf8
parent1635e26054ad93d6507ef59a419a1aa25111cb17 (diff)
downloadgroff-ddd7feac246d92aa4d851a96866bce8152555ffd.tar.gz
Avoid phantom line wrapping in pdfhref hot-spots.
-rw-r--r--contrib/pdfmark/ChangeLog10
-rw-r--r--contrib/pdfmark/pdfmark.tmac4
2 files changed, 12 insertions, 2 deletions
diff --git a/contrib/pdfmark/ChangeLog b/contrib/pdfmark/ChangeLog
index 3d87505c..f241df97 100644
--- a/contrib/pdfmark/ChangeLog
+++ b/contrib/pdfmark/ChangeLog
@@ -1,3 +1,13 @@
+2008-12-28 Keith Marshall <keith.d.marshall@ntlworld.com>
+
+ Avoid phantom line wrapping in pdfhref hot-spots.
+
+ * pdfmark.tmac (pdf*href.mark.end): Emit hot-spot end markers within
+ scope of `\Z', to prevent possible output line length overflow which
+ may occur only in the layout computation passes, but not in the final
+ output pass. Problem observed and identified by Nick Stoughton; it
+ causes some hot-spots to be displaced from their proper locations.
+
2007-04-11 Keith Marshall <keith.d.marshall@ntlworld.com>
Avoid stray newlines in folded pdfmark literal content.
diff --git a/contrib/pdfmark/pdfmark.tmac b/contrib/pdfmark/pdfmark.tmac
index 174df785..2f5c9996 100644
--- a/contrib/pdfmark/pdfmark.tmac
+++ b/contrib/pdfmark/pdfmark.tmac
@@ -419,7 +419,7 @@ inspiration has come from discussion on the groff mailing list
. \" at the end of each such unclosed literal record.
. \"
. as pdf:composed.line " \\\\\\\\\"
-. \}
+. \}
. pdf*pdfmark.post
. rm pdf:composed.line
. \}
@@ -1855,7 +1855,7 @@ ps:exec \\*[pdf:composed.line]
.de pdf*href.mark.end
.\" ----------------------------------------------------------------------
.\" ----------------------------------------------------------------------
-\O1|\h'-\w"|"u'\O2\c
+\O1\Z'|'\O2\c
..
.\" Macro "pdf*href-I" is used for one time initialisation of special
.\" "pdfhref" features; (currently, only the above page trap hook is