diff options
author | Brad King <brad.king@kitware.com> | 2008-03-07 14:09:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-07 14:09:21 (GMT) |
commit | 52ad7a5a97b22ea3b5edd6f364cdb8cc2dffbcfb (patch) | |
tree | b70f644d9f2a494e53597a6a501478e72807d59f /Source | |
parent | 1d23ea1a2de47e16929557e169b7fb041236f5d3 (diff) | |
download | CMake-52ad7a5a97b22ea3b5edd6f364cdb8cc2dffbcfb.zip CMake-52ad7a5a97b22ea3b5edd6f364cdb8cc2dffbcfb.tar.gz CMake-52ad7a5a97b22ea3b5edd6f364cdb8cc2dffbcfb.tar.bz2 |
BUG: Do not produce whitespace-only lines when indenting messages in new error/warning format.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index a3c3846..1f3bda8 100644 --- a/Source/cmMakefile.cxx +++ b/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; |