Second line of Sapient's one-liner.
This commit is contained in:
parent
b0893b22cc
commit
25cce4b6bc
1 changed files with 1 additions and 0 deletions
|
@ -789,6 +789,7 @@ if __name__ == '__main__':
|
|||
transformed = old.sub(new, transformed)
|
||||
# WML syntax changed in 1.3.5
|
||||
transformed = re.sub(r"if\]\s*\[or\]", "if]", transformed);
|
||||
transformed = re.sub(r"if\]([^[*]*)\[/or]", r"if]\1", transformed);
|
||||
# Report the changes
|
||||
if verbose > 0 and transformed != line:
|
||||
msg = "%s, line %d: %s -> %s" % \
|
||||
|
|
Loading…
Add table
Reference in a new issue