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

This commit is contained in:
Brad King 2008-03-07 09:09:21 -05:00
parent 1d23ea1a2d
commit 52ad7a5a97
1 changed files with 1 additions and 1 deletions

View File

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