pkgsrc/print/html2ps/patches/patch-ab
hubertf 174bfe43a7 Update straight to 1.0b4nb1. Changes:
000727 1.0b2 - Mostly bug fixes. A title page can be generated. The symbol
                 set is extended to include information from META elements.
                 Installation script modified for Windows support.
  000815 1.0b3 - Bug fixes. Some support for Server Side Includes. Form
                 element contents can be rendered. Support for netscape
                 cookies.
  050225 1.0b4   Various bug fixes.

"nb1" includes a patch from the html2ps author to add option "-C H"
which includes headers (only) in output.

Updated after pinging maintainer several times, with no answer.
2005-07-08 19:23:25 +00:00

39 lines
1.1 KiB
Text

$NetBSD: patch-ab,v 1.2 2005/07/08 19:23:28 hubertf Exp $
This patch adds option "-C H" to include headers (only) in output.
The patch was sent from the html2ps author Jan Karrman <jan@it.uu.se>
to hubertf@NetBSD.org upon request for such a feature. - HF
--- html2ps.orig 2005-02-25 14:40:42.000000000 +0100
+++ html2ps
@@ -521,7 +521,7 @@ $below=$opt_W=~/b/;
$layer=$opt_W=~/L/;
$prompt=$opt_W=~/p/;
-if($opt_C && $opt_C!~/^(b?[ft]|[ft]b?|b?h|hb?)$/)
+if($opt_C && $opt_C!~/^(b?[ft]|[ft]b?|b?[hH]|[hH]b?)$/)
{die "Invalid option: -C $opt_C\n"};
$tc=$opt_C?"t":"f";
$rev=$opt_C=~/t/;
@@ -2244,10 +2244,11 @@ if($gd) {
} else {
$sd="/Df f D\n";
}
+$ndox = $opt_C =~ /H/ ? 1 : $ndoc;
$_.=<<EOD;
[/Creator ($version) /Author ($Au) /Keywords ($kw) /Subject ($su)
/Title ($title) /DOCINFO pdfmark
-/ND $ndoc D
+/ND $ndox D
/HN [1 1 $nref\{pop (??)}for] D
$dh$hd
Hr length 0 gt{[/PageMode /UseOutlines /DOCVIEW pdfmark}if
@@ -3962,6 +3963,7 @@ sub DSC {
$mv=~s/\.0//g;
$temp.="$mv$line\n";
}
+ " "=~/( )( )( )/;
}
@nf=();
@sf=();