XFuscator icon indicating copy to clipboard operation
XFuscator copied to clipboard

No new line is displayed in output

Open ghost opened this issue 8 years ago • 2 comments

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("\n\n<Document>")

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("\n\n<Document>")

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.

ghost avatar Sep 06 '16 19:09 ghost

I was able to replace all \n with [[ ]]

But it is not good solution, for example how to write \r\n ?

painfull30 avatar May 04 '21 12:05 painfull30

Update - \r\n you can use if you will make file with \r\n Then read it and use this variable ))

painfull30 avatar May 04 '21 12:05 painfull30