now wmllint can correct deprecated [or] syntax inside [*while]
(previously just [*if])
This commit is contained in:
parent
baa5eaa97b
commit
57752960f5
1 changed files with 2 additions and 2 deletions
|
@ -790,8 +790,8 @@ def translator(filename, mapxforms, textxform):
|
|||
filetext = "".join(newdata)
|
||||
# WML syntax changed in 1.3.5. The transformation cannot
|
||||
# conveniently be done line-by-line.
|
||||
transformed = re.sub(r"if]\s*\[or]([\w\W]*?)\[/or]\s*",
|
||||
r"if]\1", filetext);
|
||||
transformed = re.sub(r"(if]|while])\s*\[or]([\w\W]*?)\[/or]\s*",
|
||||
r"\1\2", filetext);
|
||||
# Return None if the transformation functions made no changes.
|
||||
if modified or hacked or transformed != filetext:
|
||||
return transformed
|
||||
|
|
Loading…
Add table
Reference in a new issue