summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatterText.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-07 21:01:22 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-07 21:01:22 (GMT)
commitd4f66dfa327bc97e4e1655a027a9c3ff5e6c519c (patch)
tree2c2a7fe2679bf45a378bfb7cbbf4c06ca31c6806 /Source/cmDocumentationFormatterText.cxx
parent5233b75a777b0f3379408291e6f32b0eb15c2f54 (diff)
downloadCMake-d4f66dfa327bc97e4e1655a027a9c3ff5e6c519c.zip
CMake-d4f66dfa327bc97e4e1655a027a9c3ff5e6c519c.tar.gz
CMake-d4f66dfa327bc97e4e1655a027a9c3ff5e6c519c.tar.bz2
ENH: In cmMakefile::IssueMessage use cmDocumentationFormatterText to format the message nicely.
Diffstat (limited to 'Source/cmDocumentationFormatterText.cxx')
-rw-r--r--Source/cmDocumentationFormatterText.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatterText.cxx b/Source/cmDocumentationFormatterText.cxx
index ca22166..b45abf8 100644
--- a/Source/cmDocumentationFormatterText.cxx
+++ b/Source/cmDocumentationFormatterText.cxx
@@ -69,7 +69,7 @@ void cmDocumentationFormatterText::PrintPreformatted(std::ostream& os,
bool newline = true;
for(const char* ptr = text; *ptr; ++ptr)
{
- if(newline)
+ if(newline && *ptr != '\n')
{
os << this->TextIndent;
newline = false;