summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Marshall <keithmarshall@users.sourceforge.net>2014-10-12 22:17:44 +0100
committerKeith Marshall <keithmarshall@users.sourceforge.net>2014-10-12 22:17:44 +0100
commit94d17a8ca577da9dda9296deb700248e23be63cb (patch)
treeba1ca01f730696ae3124559f5cc6257d44715eb4
parenta06634774ea8b577d1f966f52c18d6dac58026fe (diff)
downloadgroff-git-94d17a8ca577da9dda9296deb700248e23be63cb.tar.gz
[pdfmark] Avoid spurious user visible control messages on stderr.
* pdfroff.sh (REFCOPY): Ensure that at least one pdfhref mark of type 'Z' will remain in the reference map, after all references have been resolved; this is required, to suppress writing of reference control records to stderr during the final PDF output processing phase. --HG-- extra : amend_source : e4cb9ab60e18035c7da83cd306718d3d7c338109
-rw-r--r--contrib/pdfmark/ChangeLog9
-rw-r--r--contrib/pdfmark/pdfroff.sh7
2 files changed, 16 insertions, 0 deletions
diff --git a/contrib/pdfmark/ChangeLog b/contrib/pdfmark/ChangeLog
index 882c00da8..900fd5a97 100644
--- a/contrib/pdfmark/ChangeLog
+++ b/contrib/pdfmark/ChangeLog
@@ -1,3 +1,12 @@
+2014-10-12 Keith Marshall <keith.d.marshall@ntlworld.com>
+
+ Avoid spurious user visible control messages on stderr.
+
+ * pdfroff.sh (REFCOPY): Ensure that at least one pdfhref mark of type
+ 'Z' will remain in the reference map, after all references have been
+ resolved; this is required, to suppress writing of reference control
+ records to stderr during the final PDF output processing phase.
+
2014-09-04 Bernd Warken <groff-bernd.warken-72@web.de>
* all pdfmark source files: Copying (remove last updates and
diff --git a/contrib/pdfmark/pdfroff.sh b/contrib/pdfmark/pdfroff.sh
index ac92d1f54..c91319346 100644
--- a/contrib/pdfmark/pdfroff.sh
+++ b/contrib/pdfmark/pdfroff.sh
@@ -581,6 +581,13 @@
#
$AWK '/^grohtml-info/ {print ".pdfhref Z", $2, $3, $4}' $WRKFILE >> $REFCOPY
#
+# ... appending a dummy map reference, to ensure that at least
+# one such is always present; (this is required, to suppress any
+# further intermediate output to stderr during the "press-ready"
+# runs of groff, for PDF output file production).
+#
+ echo ".pdfhref Z 0 0 0" >> $REFCOPY
+#
# Re-enable progress reporting, if necessary ...
# (Missing 'awk' or 'diff' may have disabled it, to avoid display
# of spurious messages associated with reference resolution).