[UI/Language] Newline characters (\r\n) appear in confirmation dialogs.
Ephemeronic opened this issue · comments
Ephemeronic commented
Requirements
- This issue doesn't already exist
- This bug is Not related to compatability with a specific game
Summary
Newlines aren't being properly parsed from the language resources: the \r\n characters appear as normal text.
Issue exists in both master & net8. Apologies for not just committing a fix, but I'm relatively unfamiliar with Git/Github's processes / etiquette.
Steps to reproduce
- Be using en-US language
- Click Tools menu
- Click "Mouse Cursor Visibility"
- Notice that the formatting is a block of text with \r\n peppered throughout
Technical details
This can be resolved by checking for the newline characters in LanguageManager.Data() (either in an else block in the null/empty check, or after that if is closed):
data = data.Replace(@"\r\n", Environment.NewLine);
version
10.0.0.0
andrew commented
This is fixed on Steam