From fa6832838a9367b1d9bc782b8c98376b0d71e14f Mon Sep 17 00:00:00 2001 From: gferg <> Date: Thu, 5 Jul 2001 17:34:07 +0000 Subject: [PATCH] updated --- LDP/builder/ldp_print/fix_print_html.lib | 8 +++++--- LDP/builder/ldp_print/ldp_print | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/LDP/builder/ldp_print/fix_print_html.lib b/LDP/builder/ldp_print/fix_print_html.lib index e8a9aaa4..74f3e505 100644 --- a/LDP/builder/ldp_print/fix_print_html.lib +++ b/LDP/builder/ldp_print/fix_print_html.lib @@ -8,9 +8,9 @@ # thru htmldoc. # # log: -# 16Oct2000 - initial entry -# 03Apr2001 - fix for -# +# 16Oct2000 - 0.1 - initial entry +# 03Apr2001 - 0.2 - fix for +# 05Jul2001 - 0.3 - fix for and -f # sub fix_print_html { @@ -123,6 +123,8 @@ sub fix_print_html { $buf =~ s/><[\/]*THEAD//g; $buf =~ s/TYPE=\"1\"\n//gim; + $buf =~ s/<\/P/gms; + if( $is_article == 0 ) { # for books...decrement the headers by 1 and then re-set the diff --git a/LDP/builder/ldp_print/ldp_print b/LDP/builder/ldp_print/ldp_print index 70bb801d..48df51ae 100755 --- a/LDP/builder/ldp_print/ldp_print +++ b/LDP/builder/ldp_print/ldp_print @@ -52,12 +52,12 @@ $fname_wo_ext =~ s/\.[\w]+$//; # &fix_print_html($ARGV[0], 'body.html', 'title.html'); -my($cmd) = "htmldoc --size universal -t pdf -f ${fname_wo_ext}.pdf " . +my($cmd) = "htmldoc --size universal -t pdf -f ${fname_wo_ext}.pdf " . "--firstpage p1 --titlefile title.html body.html"; # For postscript output; append onto the above cmd string: # -# "; htmldoc --size universal -t ps -f -f ${fname_wo_ext}.ps " . +# "; htmldoc --size universal -t ps -f ${fname_wo_ext}.ps " . # "--firstpage p1 --titlefile title.html body.html"; # system($cmd);