Skip to content

Commit

Permalink
Merge pull request belucha#16 from archer0302/master
Browse files Browse the repository at this point in the history
add support for different line break symbols in tracker
  • Loading branch information
belucha authored Jan 24, 2024
2 parents 760e3e2 + 2e9dd2d commit 08865ed
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 08865ed

Please sign in to comment.