Fix broken combine

This commit is contained in:
Robert Miles 2018-09-03 03:17:29 -04:00
parent 84440e92c1
commit 361f044703
1 changed files with 4 additions and 5 deletions

View File

@ -8,11 +8,10 @@ args = parser.parse_args()
cart = p8btools.Cart(args.p8cart)
t = ""
for luafile in args.luafile:
lua = p8btools.LuaCode(luafile)
lua.parse()
t += lua.text
t += "\n"
lua = p8btools.LuaCode(args.luafile)
lua.parse()
t += lua.text
t += "\n"
cart.lua = t.rstrip()
with io.open(args.result,"w",encoding="utf-8") as f:
f.write(cart.fulltext)