[Dwn-trans-commit] CVS french

CVS User jeb-guest dwn-trans-commit at lists.alioth.debian.org
Sun Nov 9 02:27:30 UTC 2008


Update of /cvsroot/dwn-trans/french
In directory alioth:/tmp/cvs-serv491

Modified Files:
	verification.pl 
Log Message:
Ajout d'une vérification pour les liens avec des espaces en trop


--- /cvsroot/dwn-trans/french/verification.pl	2008/11/09 01:57:29	1.1
+++ /cvsroot/dwn-trans/french/verification.pl	2008/11/09 02:27:30	1.2
@@ -11,8 +11,14 @@
 print "The script will check for:\n";
 print "\tDouble space, notice with DS and highlighted with '__'\n";
 print "\tCase erors, notice with CE and highlighted with '__'\n";
+print "\tSpace in link, notice with SL and highlighted with '__'\n";
 print "\n";
 while(<FILE>) {
+	# Wrong space in link
+	if (/<a[^>]*?>(\s.*?|.*?\s)<\/a>/) {
+		s/(<a[^>]*?>)(\s.*?|.*?\s)(<\/a>)/$1__$2__$3/g;
+		print "SL : $_";
+	}
 	# Douple space check
 	if (/\S+ {2,}/) {
 		s/(\S+)( {2,})/$1__$2__/g;



More information about the Dwn-trans-commit mailing list