Skip to content

IndentedStringBuilder shouldn't create space-only lines #654

@bricelam

Description

@bricelam

Steps

var builder = new IndentedStringBuilder();
using (builder.Indent())
    builder.AppendLine();
return builder.ToString();

Result

"    \r\n"

Expected

"\r\n"

The extra characters are a waste of space. 😉 We currently use IndentedStringBuilder in the following areas.

  • Migrations
    • Code
    • DDL
  • Query
    • SQL

Metadata

Metadata

Assignees

Labels

good first issueThis issue should be relatively straightforward to fix.help wantedThis issue involves technologies where we are not experts. Expert help would be appreciated.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions