From 3c64d4f59aef3ff82bd66ac170a72aea00092621 Mon Sep 17 00:00:00 2001 From: Matt Ward <ward.matt@gmail.com> Date: Sun, 14 Jul 2013 17:48:53 +0100 Subject: [PATCH] Fix build. --- .../Project/Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Libraries/NRefactory/Project/Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs b/src/Libraries/NRefactory/Project/Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs index 263d979b9b..4aac8c18aa 100644 --- a/src/Libraries/NRefactory/Project/Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs +++ b/src/Libraries/NRefactory/Project/Src/PrettyPrinter/CSharp/CSharpOutputVisitor.cs @@ -3252,9 +3252,11 @@ namespace ICSharpCode.NRefactory.PrettyPrinter return null; } - public override object TrackedVisitQueryExpressionWhereClause(QueryExpressionWhereClause whereClause, object data) + public override object TrackedVisitQueryExpressionWhereClause(QueryExpressionWhereClause whereClause, object data) { - outputFormatter.Space(); + if (!outputFormatter.LastCharacterIsWhiteSpace) { + outputFormatter.Space(); + } outputFormatter.PrintToken(Tokens.Where); outputFormatter.Space(); return whereClause.Condition.AcceptVisitor(this, data);