From: Trent Buck Last-Update: 2007-04-29 Description: Correctly quoting of paper configuration The paper type wasn't set correctly even after using paperconf because certain variables weren't correctly escaped and EOR wasn't correctly quoted. This patches fixes that. diff --git a/html2ps b/html2ps index 51a60b6..c941b2c 100755 --- a/html2ps +++ b/html2ps @@ -30,8 +30,8 @@ $globrc='/it/sw/share/www/lib/html2ps/html2psrc'; $ug='/usr/share/doc/packages/html2ps/html2ps.html'; $default_paper=`paperconf` || 'a4'; -$conf=<<'EOR'; -@html2ps { +$conf=<<"EOR"; +\@html2ps { package { PerlMagick: 0; ImageMagick: 0; @@ -90,7 +90,7 @@ $conf=<<'EOR'; middle: 2cm; } xref { - text: "[p $N]"; + text: "[p \$N]"; passes: 1; } quote { @@ -137,8 +137,8 @@ $conf=<<'EOR'; } titlepage { content: "
-

$T

-

$[author]

"; +

\$T

+

\$[author]

"; margin-top: 4cm; } font { @@ -270,7 +270,7 @@ $conf=<<'EOR'; fuchsia: FF00FF; aqua: 00FFFF; } - html2psrc: "$HOME/.html2psrc"; + html2psrc: "\$HOME/.html2psrc"; imgalt: "[IMAGE]"; datefmt: "%e %b %Y %R"; locale: ""; @@ -346,7 +346,7 @@ DEL { text-decoration: line-through } A:link, HR { color: black } -@page { +\@page { margin-left: 2.5cm; margin-right: 2.5cm; margin-top: 3cm;