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

View File

@ -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;