$NetBSD: patch-ab,v 1.3 2011/11/18 21:44:00 ryoon Exp $ This patch adds option "-C H" to include headers (only) in output. The patch was sent from the html2ps author Jan Karrman to hubertf@NetBSD.org upon request for such a feature. - HF --- html2ps.orig 2005-02-25 13:40:42.000000000 +0000 +++ 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; $_.=<