Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
html2ps
proper_variable_escaping.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File proper_variable_escaping.patch of Package html2ps
From: Trent Buck <trentbuck@gmail.com> 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: "<DIV align=center> - <H1><BIG>$T</BIG></H1> - <H2>$[author]</H2></DIV>"; + <H1><BIG>\$T</BIG></H1> + <H2>\$[author]</H2></DIV>"; 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor