Skip to content

Commit

Permalink
Change: Tweak textbox string split again
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Feb 11, 2024
1 parent a2193a6 commit 818981c
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", "\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 818981c

Please sign in to comment.