wesnoth-cvs-commits
[Top][All Lists]
Advanced

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

[Wesnoth-cvs-commits] wesnoth/utils wmltrans.pm


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/utils wmltrans.pm
Date: Thu, 21 Oct 2004 17:20:22 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    04/10/21 21:14:21

Modified files:
        utils          : wmltrans.pm 

Log message:
        correctly handle the special case of final newlines in strings, so 
wmlxgettext does the right thing

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/utils/wmltrans.pm.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: wesnoth/utils/wmltrans.pm
diff -u wesnoth/utils/wmltrans.pm:1.2 wesnoth/utils/wmltrans.pm:1.3
--- wesnoth/utils/wmltrans.pm:1.2       Sun Aug 15 20:25:11 2004
+++ wesnoth/utils/wmltrans.pm   Thu Oct 21 21:14:21 2004
@@ -78,6 +78,7 @@
   my $str = shift;
 
   $str =~ s/^(.*)$/"$1\\n"/mg;
+  $str =~ s/\n$/\n"\\n"/mg;
   $str =~ s/\\n\"$/\"\n/g;
 
   return $str;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]