Author: esr Date: Tue Nov 24 15:22:07 2009 New Revision: 39912 URL: http://svn.gna.org/viewcvs/wesnoth?rev=39912&view=rev Log: Fix another error in the pangoization code. Addresses bug #14815.
Modified: trunk/data/tools/wmllint Modified: trunk/data/tools/wmllint URL: http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=39912&r1=39911&r2=39912&view=diff ============================================================================== --- trunk/data/tools/wmllint (original) +++ trunk/data/tools/wmllint Tue Nov 24 15:22:07 2009 @@ -706,8 +706,8 @@ continue # This is the common, simple case we can fix automatically message = message[:where] + newstart + message[where+1:] - endq = line[where].rfind('"') - message = message[:endq] + newend + message[endq+1:] + endq = message.rfind('"') + message = message[:endq] + newend + message[endq:] # Check for unescaped < and > if "<" in message or ">" in message: reduced = pangostrip(message) @@ -1132,8 +1132,13 @@ present.append(string_strip(m.group(1)).strip()) if '=' not in lines[i] or ignoreable: continue + parseable = False try: (key, prefix, value, comment) = parse_attribute(lines[i]) + parseable = True + except TypeError: + pass + if parseable: if "wmllint: ignore" in comment: continue has_tr_mark = translation_mark.search(value) @@ -1188,8 +1193,6 @@ print '"%s", line %d: %s should not have a translation mark' \ % (filename, i+1, key) lines[i] = lines[i].replace("_", "", 1) - except TypeError: - pass # Now that we know who's present, register all these names as spellings declared_spellings[filename] = map(lambda x: x.lower(), present) # Check for textdomain strings; should be exactly one, on line 1 _______________________________________________ Wesnoth-commits mailing list Wesnoth-commits@gna.org https://mail.gna.org/listinfo/wesnoth-commits