mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
BUG: Do not produce whitespace-only lines when indenting messages in new error/warning format.
This commit is contained in:
parent
1d23ea1a2d
commit
52ad7a5a97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user