diff options
author | Brad King <brad.king@kitware.com> | 2008-10-10 11:23:35 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-10 11:23:35 -0400 |
commit | 5a82a0b1084096b9ba0a769d3319ba804d20d227 (patch) | |
tree | 74ccb137de52bcd7d8c0199044e04ee901878157 /Source/cmDocumentationFormatterHTML.cxx | |
parent | 657627c231caac9fe816f24ec2e98b895d13292a (diff) | |
download | cmake-5a82a0b1084096b9ba0a769d3319ba804d20d227.tar.gz |
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/cmDocumentationFormatterHTML.cxx')
-rw-r--r-- | Source/cmDocumentationFormatterHTML.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmDocumentationFormatterHTML.cxx b/Source/cmDocumentationFormatterHTML.cxx index 0f7cc704d0..09390b4719 100644 --- a/Source/cmDocumentationFormatterHTML.cxx +++ b/Source/cmDocumentationFormatterHTML.cxx @@ -202,10 +202,13 @@ void cmDocumentationFormatterHTML::PrintParagraph(std::ostream& os, } //---------------------------------------------------------------------------- -void cmDocumentationFormatterHTML::PrintHeader(const char* /*name*/, +void cmDocumentationFormatterHTML::PrintHeader(const char* docname, + const char* appname, std::ostream& os) { - os << "<html><body>\n"; + os << "<html><head><title>"; + os << docname << " - " << appname; + os << "</title></head><body>\n"; } //---------------------------------------------------------------------------- |