Commit b8f65ff6 by sikang

bug fix

parent 779b2c96
......@@ -34,9 +34,9 @@ class StringGarble:
strings = ""
for i in range(0,random.randint(100,500)):
strings += "%s\n"% ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=random.randint(5, 100)))
strings += "<string>%s</string>\n"% ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=random.randint(5, 100)))
with open(path, "w") as f_w:
fileContent = fileContent.replace("</resources>","<string>%s</string>\n</resources>"% strings)
fileContent = fileContent.replace("</resources>","%s\n</resources>"% strings)
f_w.write(fileContent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment