Browse Source

BUG: Do not produce whitespace-only lines when indenting messages in new error/warning format.

Brad King 18 years ago
parent
commit
52ad7a5a97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmMakefile.cxx

+ 1 - 1
Source/cmMakefile.cxx

@@ -289,7 +289,7 @@ void cmMakefilePrintPrefixed(std::ostream& os,  const char* prefix,
   bool newline = true;
   for(const char* c = msg.c_str(); *c; ++c)
     {
-    if(newline)
+    if(newline && *c != '\n')
       {
       os << prefix;
       newline = false;