diff --git a/OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs b/OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs index 9ceba99..0d3ad3f 100644 --- a/OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs +++ b/OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs @@ -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;