Skip to content

Commit

Permalink
Bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarBUS committed Dec 8, 2024
1 parent 3200b4e commit 42c8fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symptum.UI/Markdown/TextElements/CodeBlockElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CodeBlockElement(CodeBlock codeBlock, MarkdownConfiguration config)
}
}

formatter.FormatInlines(stringBuilder.ToString().TrimEnd(Environment.NewLine.AsSpan()), fencedCodeBlock.ToLanguage(), textBlock.Inlines);
formatter.FormatInlines(stringBuilder.ToString(), fencedCodeBlock.ToLanguage(), textBlock.Inlines);
}
else
{
Expand All @@ -68,7 +68,7 @@ public CodeBlockElement(CodeBlock codeBlock, MarkdownConfiguration config)

if (i < codeBlock.Lines.Lines.Length - 1) stringBuilder.AppendLine();
}
textBlock.Text = stringBuilder.ToString().TrimEnd(Environment.NewLine.AsSpan());
textBlock.Text = stringBuilder.ToString();
}
border.Child = new ScrollViewer() { Content = textBlock, HorizontalScrollBarVisibility = ScrollBarVisibility.Auto };
_container.UIElement = border;
Expand Down

0 comments on commit 42c8fd5

Please sign in to comment.