Convert CRLF to LF in lua and xml files

This commit is contained in:
Adam Goldsmith 2023-03-12 12:36:24 -04:00
parent 3076b7612b
commit fa4d07b628
1 changed files with 2 additions and 2 deletions

View File

@ -86,13 +86,13 @@ def recursivelyUnpackObject(parent_dir, obj,
if 'LuaScript' in obj and len(obj['LuaScript']) > 0:
with open(file_base_path + '.ttslua', 'w') as f:
f.write(obj['LuaScript'])
f.write(obj['LuaScript'].replace("\r\n", "\n"))
obj['LuaScript'] = IncludeTag(obj_base_name + '.ttslua')
if 'XmlUI' in obj and len(obj['XmlUI']) > 0:
with open(file_base_path + '.xml', 'w') as f:
f.write(obj['XmlUI'])
f.write(obj['XmlUI'].replace("\r\n", "\n"))
obj['XmlUI'] = IncludeTag(obj_base_name + '.xml')