Revert revisions of mine: 2012-01-19T17:58:30Z!anonymissimus@arcor.de, 2012-01-19T17:59:02Z!anonymissimus@arcor.de
Since it introduced wrong line numbers in wmllint messages. And probably messes up files in case dryrun isn't used. Reintroduces the wmllint breakage problem with Hornshark Island.
This commit is contained in:
parent
4138065993
commit
b271273d33
2 changed files with 0 additions and 11 deletions
|
@ -50,7 +50,6 @@ Version 1.9.14+svn:
|
|||
* Fixed wmlindent writing CRLF end of lines on windows
|
||||
* Fix tutorial units without xp bar
|
||||
* Reset game credits instead of appending on WML cache refresh (bug #19292)
|
||||
* Make wmllint ignore lines with << until a line with >> (embedded lua)
|
||||
|
||||
Version 1.9.14:
|
||||
* AI:
|
||||
|
|
|
@ -1726,7 +1726,6 @@ def translator(filename, mapxforms, textxform):
|
|||
unbalanced = False
|
||||
newdata = []
|
||||
refname = None
|
||||
in_lua = False
|
||||
while mfile:
|
||||
if not map_only:
|
||||
line = mfile.pop(0)
|
||||
|
@ -1887,15 +1886,6 @@ def translator(filename, mapxforms, textxform):
|
|||
newdata.append(line + terminator)
|
||||
else:
|
||||
# Handle text (non-map) lines. It can use within().
|
||||
# Ignore lines with embedded lua.
|
||||
if in_lua:
|
||||
if ">>" in line:
|
||||
in_lua = False
|
||||
continue
|
||||
elif "<<" in line:
|
||||
if not ">>" in line:
|
||||
in_lua = True
|
||||
continue
|
||||
newline = textxform(filename, lineno, line)
|
||||
newdata.append(newline + terminator)
|
||||
fields = newline.split("#")
|
||||
|
|
Loading…
Add table
Reference in a new issue