Skip to content

Commit

Permalink
Correct indent
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 17, 2021
1 parent d0075ba commit cf4b213
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ void RewriteSourceWithNewBaseline(string fileName, int lineNumber)
syntaxTree = CSharpSyntaxTree.ParseText(SourceText.From(stream));
}

// Read through the source file, copying contents to a temp file (with the baseline changE)
using (var reader = File.OpenText(fileName))
using (var writer = File.CreateText(fileName + ".tmp"))
{
Expand Down Expand Up @@ -223,7 +224,7 @@ void RewriteSourceWithNewBaseline(string fileName, int lineNumber)
indentBuilder.Append(" ");
var indent = indentBuilder.ToString();
var newBaseLine = $@"AssertSql(
{indent}{string.Join(",\n" + indent + "//\n" + indent, SqlStatements.Select(sql => "@\"" + sql.Replace("\"", "\"\"") + "\""))})";
{indent}{string.Join(",\n" + indent + "//\n" + indent, SqlStatements.Select(sql => "@\"" + sql.Replace("\"", "\"\"") + "\""))})";

writer.Write(newBaseLine);

Expand Down

0 comments on commit cf4b213

Please sign in to comment.