From 2e9dd2def2617a7afc8e16c3f400af3480423693 Mon Sep 17 00:00:00 2001 From: Archer Chang Date: Wed, 10 Jan 2024 11:08:09 +1100 Subject: [PATCH] add support for different line break symbols in tracker --- OxyPlot.Blazor/BlazorSvgFragmentRenderContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;