[Po4a-commits] "po4a/lib/Locale/Po4a Sgml.pm,1.120,1.121"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Aug 5 15:25:24 UTC 2007


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv6396/lib/Locale/Po4a

Modified Files:
	Sgml.pm 
Log Message:
Only show the Sgml annoying warning in verbose mode. (The warning was
always displayed and no problems were reported in the last years).


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- Sgml.pm	17 Jun 2007 00:19:39 -0000	1.120
+++ Sgml.pm	5 Aug 2007 15:25:22 -0000	1.121
@@ -1142,10 +1142,13 @@
     $self->pushline($buffer);
     close(IN);
     warn wrap_mod("po4a::sgml",
-                  dgettext("po4a","Warning: nsgmls is missing or non-".
-                  "functional.  Please make sure that nsgmls is present and ".
-                  "does not produce any error (with the -wno-valid option), ".
-                  "and report a bug otherwise.  Continuing...")) if ($? != 0);
+                  dgettext("po4a","Warning: nsgmls produced some errors.  ".
+                  "This is usually caused by po4a, which modifies the input ".
+                  "and restores it afterwards, causing the input of nsgmls ".
+                  "to be invalid.  This is usually safe, but you may wish ".
+                  "to verify the generated document with nsgmls -wno-valid.  ".
+                  "Continuing..."))
+        if ($? != 0 and $self->verbose() > 0);
     unlink ($tmpfile) unless ($debug{'refs'} or $debug{'nsgmls'});
 }
 




More information about the Po4a-commits mailing list