And yet another minor indentation-generation bug.

This commit is contained in:
Eric S. Raymond 2007-10-05 19:35:58 +00:00
parent 869f1981a4
commit 67bca1a8f6

View file

@ -946,12 +946,12 @@ def hack_syntax(filename, lines):
break
m = re.search(r"(\s+)image_short=(.*)", lines[i])
if m:
image_block = expanded.replace("\n", "\n" + m.group(1))
image_block = expanded.replace("\n", "\n" + m.group(1)) + "\n"
lines[i] = m.group(1) + image_block % (m.group(2), "melee")
modcount += 1
m = re.search(r"(\s+)image_long=(.*)", lines[i])
if m:
image_block = expanded.replace("\n", "\n" + m.group(1))
image_block = expanded.replace("\n", "\n" + m.group(1)) + "\n"
lines[i] = m.group(1) + image_block % (m.group(2), "ranged")
modcount += 1
# More syntax transformations would go here.