Author: mordante
Date: Sun May 27 18:19:33 2007
New Revision: 17908
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17908&view=rev
Log:
on map only files the first line is no longer skipped when converting the
maps. esr could you review the patch, Soliton tested it and seems to work.
Modified:
trunk/data/tools/wmllint
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=17908&r1=17907&r2=17908&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Sun May 27 18:19:33 2007
@@ -440,10 +440,11 @@
newdata = []
lineno = baseline = 0
while mfile:
- line = mfile.pop(0)
- if verbose >= 3:
- sys.stdout.write(line + terminator)
- lineno += 1
+ if not map_only:
+ line = mfile.pop(0)
+ if verbose >= 3:
+ sys.stdout.write(line + terminator)
+ lineno += 1
# Exclude map_data= lines that are just 1 line without
# continuation, or which contain {}. The former are
# pathological and the parse won't handle them, the latter
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits