File: checker_warning.patch

package info (click to toggle)
html2ps 1.0b7-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,208 kB
  • sloc: perl: 4,539; tcl: 1,799; sh: 38; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Rafael Cunha de Almeida <rafael@kontesti.me>
Forwarded: Yes
Last-Update: 2011-01-17
Description: Warns about HTML syntax checker returning an error
 If the HTML syntax checker returns an error (if the command doesn't
 exist or if it fails), the original behaviour is to quietly continue.
 This patch makes html2ps louder. It warns that the HTML syntax checker
 program returned an error.

diff --git a/html2ps b/html2ps
index ba6bf3b..1908139 100755
--- a/html2ps
+++ b/html2ps
@@ -2430,6 +2430,7 @@ sub h2p {
       $file="$scr";
     }
     &dbg(`$package{'check'} $file`);
+    &dbg("warning: HTML syntax checker returned in error.\n") if ($?);
   }
 
   if(!$latin1) {