Skip to content

Commit

Permalink
Fix describe command file output markdown formatting for heading2/title
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticmind committed Jul 8, 2024
1 parent 13b4228 commit a994efe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Oakton/Descriptions/DescribeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static async Task WriteText(IDescribedSystemPart[] parts, TextWriter writ
{
foreach (var part in parts)
{
await writer.WriteLineAsync("##" + part.Title);
await writer.WriteLineAsync("## " + part.Title);
await writer.WriteLineAsync();
await part.Write(writer);
await writer.WriteLineAsync();
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Descriptions/DescribeCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task write_text()
writer.ToString().ShouldContain(theParts[0].Title);

writer.ToString().ShouldContain(theParts[1].As<DescribedPart>().Body);
writer.ToString().ShouldContain(theParts[1].Title);
writer.ToString().ShouldContain("## " + theParts[1].Title);
}

[Fact]
Expand Down

0 comments on commit a994efe

Please sign in to comment.