[JW Lua] FCString:AppendEOL appends 0d 0d 0a on Windows

Jan Angermüller jan at angermueller.com
Wed Jul 22 19:00:03 CEST 2015


Jari,

FCString:AppendEOL() appends a "0d 0d 0a" instead of the typical "0d 0a" 
on Windows.
Code snippet below.

All the best,
Jan


local text=finale.FCString()
text.LuaString="Test"
text:AppendEOL()
local outfile = io.open("c:\\test.txt", "w")
outfile:write(text.LuaString)
outfile:close()

The created file then has the following hex codes:
54 65 73 74 0D 0D 0A

(54 65 73 74 =="Test")




More information about the JWLua mailing list