Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No new line is displayed in output #3

Open
ghost opened this issue Sep 6, 2016 · 2 comments
Open

No new line is displayed in output #3

ghost opened this issue Sep 6, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2016

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")

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")

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.

@painfull30
Copy link

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

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

@painfull30
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant