From 3b871b86e7d76cf8181971d8bcc24bb0e8c65d94 Mon Sep 17 00:00:00 2001 From: marcos henrich Date: Sat, 23 Mar 2013 14:15:55 +0000 Subject: [PATCH] Fixed missing indentation when calling TextGenerator.Write with a string ending with new line --- src/Generator/Utils/TextGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Utils/TextGenerator.cs b/src/Generator/Utils/TextGenerator.cs index a3abba17..030468b8 100644 --- a/src/Generator/Utils/TextGenerator.cs +++ b/src/Generator/Utils/TextGenerator.cs @@ -31,7 +31,7 @@ namespace Cxxi msg = string.Format(msg, args); if (msg.Length > 0) - isStartOfLine = false; + isStartOfLine = msg.EndsWith(System.Environment.NewLine); sb.Append(msg); }