Skip to content

Commit 953a20f

Browse files
committed
Remove the dashes and include the Template name header
1 parent c3aa8c4 commit 953a20f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/dotnet-new.Tests/DotnetNewListTests.Approval.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,16 @@ private static void ScrubData(StringBuilder input)
5757

5858
foreach (var line in lines)
5959
{
60+
61+
// start trimming whitespace and anything but the first word with the start of the table
6062
if (line.StartsWith("Template Name", StringComparison.Ordinal))
6163
{
6264
isTable = true;
65+
}
66+
67+
// We don't want to have to count how many dashes are in the table separator as this can change based on the width of the column
68+
if (line.StartsWith("-----", StringComparison.Ordinal))
69+
{
6370
continue;
6471
}
6572

0 commit comments

Comments
 (0)