Skip to content

Commit 958ecfe

Browse files
authored
Update hoi4localisationadder.py
1 parent 7c11e2a commit 958ecfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python2/hoi4localisationadder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def readfile(name):
100100
temp_line = re.sub('\s', "", temp_line)
101101
temp_line.strip()
102102
tags[temp_line] = None
103-
open_blocks += line.count('{')
104-
open_blocks -= line.count('}')
103+
open_blocks += re.sub(r'\".*?\"', '', line).count('{')
104+
open_blocks -= re.sub(r'\".*?\"', '', line).count('}')
105105

106106
print("File " + name + " read successfully!")
107107
return list(tags.keys()), (is_event_file, is_focus_file, is_idea_file, is_decision_categories_file)

0 commit comments

Comments
 (0)