summaryrefslogtreecommitdiff
path: root/contrib/pdfmark
diff options
context:
space:
mode:
authorkeithmarshall <keithmarshall>2006-07-30 21:49:51 +0000
committerkeithmarshall <keithmarshall>2006-07-30 21:49:51 +0000
commita78cd475404c83308bf4cf118146d17ea948871a (patch)
treed7d16d064711e61a20b7208dc7278617b1d80a5f /contrib/pdfmark
parent9b5476a9ae88c61b43e3c6d3de6735d4dc4a170d (diff)
downloadgroff-a78cd475404c83308bf4cf118146d17ea948871a.tar.gz
* pdfroff.sh (PDFROFF_KILL_NULL_PAGES): Require `%%BeginPageSetup' on
PostScript output line immediately following `%%Page:'.
Diffstat (limited to 'contrib/pdfmark')
-rw-r--r--contrib/pdfmark/ChangeLog5
-rw-r--r--contrib/pdfmark/pdfroff.sh7
2 files changed, 11 insertions, 1 deletions
diff --git a/contrib/pdfmark/ChangeLog b/contrib/pdfmark/ChangeLog
index 98ba9439..d2803fab 100644
--- a/contrib/pdfmark/ChangeLog
+++ b/contrib/pdfmark/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-30 Keith Marshall <keith.d.marshall@ntlworld.com>
+
+ * pdfroff.sh (PDFROFF_KILL_NULL_PAGES): Require `%%BeginPageSetup' on
+ PostScript output line immediately following `%%Page:'.
+
2006-07-29 Keith Marshall <keith.d.marshall@ntlworld.com>
* pdfroff.sh (PDFROFF_KILL_NULL_PAGES): Require `sed' to match a more
diff --git a/contrib/pdfmark/pdfroff.sh b/contrib/pdfmark/pdfroff.sh
index a670d6a3..a23bba55 100644
--- a/contrib/pdfmark/pdfroff.sh
+++ b/contrib/pdfmark/pdfroff.sh
@@ -609,6 +609,11 @@
# (This 'sed' script is a hack, to eliminate redundant blank pages).
#
${PDFROFF_COLLATE-"$SED"} ${PDFROFF_KILL_NULL_PAGES-'
+ /%%Page:/{
+ N
+ /%%BeginPageSetup/b again
+ }
+ b
:again
/%%EndPageSetup/b finish
/%%Page:/{
@@ -623,4 +628,4 @@
$SAY >&2 ". done"
#
# ------------------------------------------------------------------------------
-# $RCSfile: pdfroff.sh,v $ $Revision: 1.12 $: end of file
+# $RCSfile: pdfroff.sh,v $ $Revision: 1.13 $: end of file