summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-22 14:38:10 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-22 14:38:10 (GMT)
commit211e991057ed282e6fcf07d8e9212b6136411b10 (patch)
tree9dc1e12fec1ef585f7e2c312a61e6cc1f0185e69 /Source/cmDocumentation.cxx
parentc9eaf72567b13cd587e9d5d1d1b0ad17e43a274f (diff)
downloadCMake-211e991057ed282e6fcf07d8e9212b6136411b10.zip
CMake-211e991057ed282e6fcf07d8e9212b6136411b10.tar.gz
CMake-211e991057ed282e6fcf07d8e9212b6136411b10.tar.bz2
BUG: Fixed man page formatting for INSTALL command documentation. Fixed line-too-long warning.
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 2b148ea..0c73394 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -840,13 +840,17 @@ void cmDocumentation::PrintParagraphHTML(std::ostream& os, const char* text)
//----------------------------------------------------------------------------
void cmDocumentation::PrintPreformattedMan(std::ostream& os, const char* text)
{
- os << text << "\n";
+ std::string man_text = text;
+ cmSystemTools::ReplaceString(man_text, "\\", "\\\\");
+ os << man_text << "\n";
}
//----------------------------------------------------------------------------
void cmDocumentation::PrintParagraphMan(std::ostream& os, const char* text)
{
- os << text << "\n\n";
+ std::string man_text = text;
+ cmSystemTools::ReplaceString(man_text, "\\", "\\\\");
+ os << man_text << "\n\n";
}
//----------------------------------------------------------------------------