Skip to content

Commit

Permalink
add support for different line break symbols in tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
archer0302 committed Jan 10, 2024
1 parent 760e3e2 commit 2e9dd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ public override void DrawText(
return;
}

var lines = Regex.Split(text, "\r\n");
var lines = Regex.Split(text, "(\r\n|\n|\r)");

var textSize = MeasureText(text, fontFamily, fontSize, fontWeight);
var lineHeight = textSize.Height / lines.Length;
Expand Down

0 comments on commit 2e9dd2d

Please sign in to comment.