Open ghost opened 8 years ago
It seems that there is an issue when "\n" is included in print command.
For example, when we have a lua file that contains the following: print("<?xml version='1.0' encoding='UTF-8'?>\n\n")
Then, we observe that after obfuscation in lua console, "\n" is displayed in the output and no new line is inserted.
In a normal execution (without obfuscation), a new line break should exist every time "\n" is present.
Moreover, the same issue seems to exist also when we want to export text at a new file through file:write command.
file:write("<?xml version='1.0' encoding='UTF-8'?>\n\n")
The above one will be printed only in one line. Also, "\n" is still appeared in the new output. Maybe one function for escaping such characters should be used.
I was able to replace all \n with [[ ]]
But it is not good solution, for example how to write \r\n ?
Update - \r\n you can use if you will make file with \r\n Then read it and use this variable ))
It seems that there is an issue when "\n" is included in print command.
For example, when we have a lua file that contains the following: print("<?xml version='1.0' encoding='UTF-8'?>\n\n")
Then, we observe that after obfuscation in lua console, "\n" is displayed in the output and no new line is inserted.
In a normal execution (without obfuscation), a new line break should exist every time "\n" is present.
Moreover, the same issue seems to exist also when we want to export text at a new file through file:write command.
file:write("<?xml version='1.0' encoding='UTF-8'?>\n\n")
The above one will be printed only in one line. Also, "\n" is still appeared in the new output. Maybe one function for escaping such characters should be used.