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
Debug/chat messages are not consistent across platforms #684
Comments
This is due to the StripControlCodes function in Packet_DebugEcho and Packet_ChatEcho. |
Nice find. That should work. Which control codes are currently stripped? |
All below code 32 |
Perhaps that's too easy for a good fix of this issue. Does removing the call to that function introduce any side effect? I guess the call is there for a reason. Edit: While checking a bit the code in order to make a (hopefully) better response, I've found that Packet_ConsoleEcho also calls StripControlCodes, so maybe that also creates inconsistencies across platforms on the treatment of control characters when outputting strings to the console. |
If we check where StripControlCodes is used we could just edit StripControlCodes to allow tabs and newlines (tabs and newlines most definitely won't break anything... he says). Otherwise a flag to that function would also work. |
Describe the bug
Debug messages on the client allow newlines whereas messages on the server do not.
To reproduce
Expected behaviour
Should be the same.
Screenshots
Version
1.5.6
Additional information
It would be useful to also convert
\t
to four spaces.The text was updated successfully, but these errors were encountered: