Package: latex2html
Version: 2002-2-1-8
Severity: normal
Tags: patch
pstoimg uses the following regexp to fix the gray background coming
out of dvips when the -white option is specified:
(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray clippath fill grestore)
However, the actual dvips output looks like this:
TeXDict begin 37 36 bop gsave .7 TeXcolorgray clippath fill grestore
So the regexp doesn't match. Removing the \n at the beginning of the
regexp fixes the problem.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages latex2html depends on:
ii gs-afpl [gs] 8.14-3 The AFPL Ghostscript PostScript in
ii gs-esp [gs] 7.07.1-9 The Ghostscript PostScript interpr
ii netpbm 2:10.0-8 Graphics conversion tools
ii perl 5.8.4-5 Larry Wall's Practical Extraction
ii tetex-bin 2.0.2-25 The teTeX binary files
ii tetex-extra 2.0.2c-3 Additional library files of teTeX
ii tetex-bin 2.0.2-25 The teTeX binary files
-- no debconf information
--- /usr/bin/pstoimg 2004-09-01 14:50:36.000000000 -0400
+++ ./pstoimg 2005-01-20 12:01:59.000000000 -0500
@@ -1021,7 +1021,7 @@
}
my $had_nonwhite;
if($opt{white}) {
- $had_nonwhite = ($ps =~ s/(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray
clippath fill grestore)/$1 1 $2/s);
+ $had_nonwhite = ($ps =~ s/(\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray
clippath fill grestore)/$1 1 $2/s);
}
$ps_changed = $had_papersize || $had_nonwhite;
if($ps_changed) {