Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Feb 11, 2024
2 parents 5256f50 + 818981c commit f752e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/LibRender2/Primitives/Textbox.cs
Expand Up @@ -40,7 +40,8 @@ public string Text

private List<string> WrappedLines(int width)
{
string[] firstSplit = Text.Split(new[] {"\r\n", @"\r\n"}, StringSplitOptions.None);
// string literal as well as escaped character as we may have loaded from language file
string[] firstSplit = Text.Split(new[] {"\r\n", "\n", @"\r\n"}, StringSplitOptions.None);
List<string> wrappedLines = new List<string>();
string currentLine = string.Empty;
for(int j = 0; j < firstSplit.Length; j++)
Expand Down

0 comments on commit f752e49

Please sign in to comment.