diff options
author | Brad King <brad.king@kitware.com> | 2008-10-10 15:23:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-10 15:23:35 (GMT) |
commit | 5a82a0b1084096b9ba0a769d3319ba804d20d227 (patch) | |
tree | 74ccb137de52bcd7d8c0199044e04ee901878157 /Source/cmDocumentationFormatter.cxx | |
parent | 657627c231caac9fe816f24ec2e98b895d13292a (diff) | |
download | CMake-5a82a0b1084096b9ba0a769d3319ba804d20d227.zip CMake-5a82a0b1084096b9ba0a769d3319ba804d20d227.tar.gz CMake-5a82a0b1084096b9ba0a769d3319ba804d20d227.tar.bz2 |
ENH: Improve generated documentation formatting
Applying patch provided in issue #7797.
Fixes to man-pages:
- Character '-' must be espaced as '\-'
- Surround preformatted text with '.nf' and '.fi' to adjust filling
- Give every page a NAME section for indexing by mandb
- Pass the man page filename without extension to .TH in its header
Also added a title to the HTML header.
Diffstat (limited to 'Source/cmDocumentationFormatter.cxx')
-rw-r--r-- | Source/cmDocumentationFormatter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatter.cxx b/Source/cmDocumentationFormatter.cxx index 9718047..1f7f428 100644 --- a/Source/cmDocumentationFormatter.cxx +++ b/Source/cmDocumentationFormatter.cxx @@ -118,7 +118,8 @@ cmDocumentationFormatter::ComputeSectionLinkPrefix(std::string const& name) { return "module"; } - else if(name.find("Name") != name.npos) + else if(name.find("Name") != name.npos || + name.find("Introduction") != name.npos) { return "name"; } |