[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1291
Date       : Fri Jun  9 15:29:03 BST 2006

Changed paths:
   M /Trunk/XaraLX/Scripts/build-resources.pl

Try to fix potfile bug


Diff:
Index: Trunk/XaraLX/Scripts/build-resources.pl
===================================================================
--- Trunk/XaraLX/Scripts/build-resources.pl	(revision 1290)
+++ Trunk/XaraLX/Scripts/build-resources.pl	(revision 1291)
@@ -383,6 +383,8 @@
     {
 	chomp;
 	s/^\S+	//;
+	# skip completely blank lines
+	next if (/^\s*$/);
 	# escape slashes
 	s/\/\\/g;
 	# escape quotes
@@ -408,6 +410,8 @@
     {
 	# Note wxrc removes XML escaping
 	chomp;
+	# zap blank lines
+	next if (/^_\(\"\s*\"\)/);
 	print STDERR "Dialog: $_
" if ($verbose>2);
 	push @strings,$_;
 	$dlines++;


Xara