From 58a45d1f15d8621bc2304217602b67fe4147c31b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 20 May 2013 19:19:35 +0000 Subject: [PATCH] fix off by one inside --- tools/locale/strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/locale/strings.py b/tools/locale/strings.py index 89b8e207..7565f023 100644 --- a/tools/locale/strings.py +++ b/tools/locale/strings.py @@ -34,7 +34,7 @@ for f in files: if i >= 3 and tokens[i - 3]['value'] + tokens[i - 2]['value'] \ + tokens[i - 1]['value'] + tokens[i]['value'] == 'Ox._(': inside = True - level = 0 + level = 1 elif inside: if token['value'] == '(': level +=1