Convert CRLF to LF in lua and xml files
This commit is contained in:
parent
3076b7612b
commit
fa4d07b628
@ -86,13 +86,13 @@ def recursivelyUnpackObject(parent_dir, obj,
|
|||||||
|
|
||||||
if 'LuaScript' in obj and len(obj['LuaScript']) > 0:
|
if 'LuaScript' in obj and len(obj['LuaScript']) > 0:
|
||||||
with open(file_base_path + '.ttslua', 'w') as f:
|
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')
|
obj['LuaScript'] = IncludeTag(obj_base_name + '.ttslua')
|
||||||
|
|
||||||
if 'XmlUI' in obj and len(obj['XmlUI']) > 0:
|
if 'XmlUI' in obj and len(obj['XmlUI']) > 0:
|
||||||
with open(file_base_path + '.xml', 'w') as f:
|
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')
|
obj['XmlUI'] = IncludeTag(obj_base_name + '.xml')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user