Author: esr
Date: Tue Apr 24 15:26:07 2007
New Revision: 17032
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17032&view=rev
Log:
Python version of mapconvert now passes regression on every UMC file that
the Perl version doesn't barf on.
Modified:
trunk/data/tools/map_convert.pl
trunk/data/tools/map_convert.py
Modified: trunk/data/tools/map_convert.pl
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/map_convert.pl?rev=17032&r1=17031&r2=17032&view=diff
==============================================================================
--- trunk/data/tools/map_convert.pl (original)
+++ trunk/data/tools/map_convert.pl Tue Apr 24 15:26:07 2007
@@ -193,6 +193,9 @@
if($line=~/\"/){
$cont=0;
($line,$dummy)=split('"',$line);
+ }
+ if (!$line=~/\n/){
+ $line.="\n"
}
if(defined($line) && length($line)){push(@map,$line)};
}
Modified: trunk/data/tools/map_convert.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/map_convert.py?rev=17032&r1=17031&r2=17032&view=diff
==============================================================================
--- trunk/data/tools/map_convert.py (original)
+++ trunk/data/tools/map_convert.py Tue Apr 24 15:26:07 2007
@@ -159,8 +159,8 @@
if '"' in line:
cont = False
line = line.split('"')[0]
- if line and not line.endswith("\n"):
- line += "\n"
+ if line and not line.endswith("\n"):
+ line += "\n"
if line:
outmap.append(line)
if not map_only:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits