Skip to content

Commit b9b384c

Browse files
authored
Remove extra newline from APIDiff TOC (#49794)
1 parent cf32126 commit b9b384c

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/Compatibility/ApiDiff/Microsoft.DotNet.ApiDiff/FileOutputDiffGenerator.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ public async Task RunAsync(CancellationToken cancellationToken)
155155
_log.LogMessage($"Wrote '{filePath}'.");
156156
}
157157

158-
tableOfContents.AppendLine();
159-
160158
string tableOfContentsFilePath = Path.Combine(_outputFolderPath, $"{_tableOfContentsTitle}.md");
161159

162160
if (_writeToDisk)

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Disk.Tests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Lines preceded by a '+' are additions and a '-' indicates removal.
2525
2626
* [{DefaultAssemblyName}]({DefaultTableOfContentsTitle}_{DefaultAssemblyName}.md)
2727
28-
2928
""";
3029

3130
private const string ExpectedEmptyTableOfContents = $"""
@@ -35,7 +34,6 @@ API listing follows standard diff formatting.
3534
Lines preceded by a '+' are additions and a '-' indicates removal.
3635
3736
38-
3937
""";
4038

4139
private const string BeforeCode = """
@@ -239,7 +237,6 @@ Lines preceded by a '+' are additions and a '-' indicates removal.
239237
240238
* [Assembly1]({DefaultTableOfContentsTitle}_Assembly1.md)
241239
* [Assembly2]({DefaultTableOfContentsTitle}_Assembly2.md)
242-
243240
";
244241

245242
using TempDirectory inputFolderPath = new();

0 commit comments

Comments
 (0)