Skip to content

chore: Remove extra space that is added by AppendArgument#3183

Open
filzrev wants to merge 1 commit into
dotnet:masterfrom
filzrev:chore-remove-extra-space-of-appendargument
Open

chore: Remove extra space that is added by AppendArgument#3183
filzrev wants to merge 1 commit into
dotnet:masterfrom
filzrev:chore-remove-extra-space-of-appendargument

Conversation

@filzrev

@filzrev filzrev commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR modify AppendArgument extension method for StringBuilder.

This extension method is used by DotNetCliCommand.cs
And it add extra space between dotnet and sub command (e.g. dotnet restore)

This PR remove extra space to make it easier to grep from logs.

@filzrev filzrev force-pushed the chore-remove-extra-space-of-appendargument branch from a9f7c3e to 6d976a6 Compare June 23, 2026 11:06
[InlineData(" a ", "a")]
[InlineData(" a ", "a")]
[InlineData(" \r\n a \r\n", "a")]
public void AppendArgumentMakesSureOneSpaceBeforeStringArgument(string? input, string expectedOutput)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should be updated to test both single- and multi-argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants