Skip to content

Commit

Permalink
Docs: Use spaces for indententation in the examples (#9741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Namoshek authored Aug 31, 2024
1 parent d143a22 commit 544faf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MudBlazor.Docs/Components/SectionContent.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ RenderFragment CodeComponent(string code) => builder =>
{
var read = reader.ReadToEnd();

// Ensure the code uses spaces for identation regardless of the formatting within the source code.
read = read.Replace("\t", " ");

if (!string.IsNullOrEmpty(HighLight))
{
if (HighLight.Contains(','))
Expand Down

0 comments on commit 544faf9

Please sign in to comment.