1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/print/html2ps-letter/files/patch-ab
Andreas Klemm d522742985 Fixed bug: html2ps chokes on pictures inserted via
<img src="file:/foo/bar.gif">
Thus mswordview output isn't parsed properly.

PR:		closes 10874
Submitted by:	stanislav shalunov <shalunov@att.com>
1999-07-19 19:58:06 +00:00

18 lines
571 B
Plaintext

--- html2ps.orig Sat Aug 9 20:59:05 1997
+++ html2ps Mon Jul 19 21:55:04 1999
@@ -1,5 +1,5 @@
: # Use perl
-eval 'exec perl -S $0 "$@"'
+eval 'exec /usr/bin/perl5 -S $0 "$@"'
if $running_under_some_shell;
# This is html2ps version 1.0 beta1, an HTML-to-PostScript converter.
@@ -4072,6 +4072,7 @@
$URL=$url;
unless($url=~m|://|) {
if($url=~m|^http:(.*)|) {$url=$1}
+ if($url=~m|^file:(.*)|) {$url=$1}
if($url=~m|^/|) {$URL=$b1.$url} else {$URL=$b2.$url}
}
while($URL!~m|^\.\./| && $URL=~m|[^/]*/\.\./|) {$URL=$`.$'};