From 67bca1a8f6520c566a423feac44d528d53413cd8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 5 Oct 2007 19:35:58 +0000 Subject: [PATCH] And yet another minor indentation-generation bug. --- data/tools/wmllint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/tools/wmllint b/data/tools/wmllint index deda0058a4b..f7d3ce96263 100755 --- a/data/tools/wmllint +++ b/data/tools/wmllint @@ -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.