Author: elias
Date: Wed Apr 15 23:58:19 2009
New Revision: 34953
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34953&view=rev
Log:
Added small kludge to wmlparser.py so it will parse the mercenaries addon.
Modified:
branches/1.6/data/tools/wesnoth/wmlparser.py
Modified: branches/1.6/data/tools/wesnoth/wmlparser.py
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/tools/wesnoth/wmlparser.py?rev=34953&r1=34952&r2=34953&view=diff
==============================================================================
--- branches/1.6/data/tools/wesnoth/wmlparser.py (original)
+++ branches/1.6/data/tools/wesnoth/wmlparser.py Wed Apr 15 23:58:19 2009
@@ -489,6 +489,9 @@
text = text.replace("{%s}" % macro.params[i], rep)
if text:
+ # Hack: Ignore empty lines at beginning of a macro at least one
+ # addon breaks otherwise.
+ while len(text) >= 1 and text[0] == '\n': text = text[1:]
self.push_text(name, text, initial_textdomain =
macro.textdomain)
else:
pass # empty macro, nothing to do
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits