diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-07-21 21:52:59 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-07-21 21:52:59 (GMT) |
commit | 4175b514fc65cd452fbf1f62bd5c0c494568e9fd (patch) | |
tree | 6e726407fc166a557beb0726a315ccedf0d066cb /Source/cmDocumentation.cxx | |
parent | 76878d928e66a1ce850beba7d9d114f46ee1d549 (diff) | |
download | CMake-4175b514fc65cd452fbf1f62bd5c0c494568e9fd.zip CMake-4175b514fc65cd452fbf1f62bd5c0c494568e9fd.tar.gz CMake-4175b514fc65cd452fbf1f62bd5c0c494568e9fd.tar.bz2 |
ENH: handle HTML documentation for single items better: no warning about
ComputeSectionLinkPrefix, don't create an index for only one item
Alex
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 3b3dab7..72a8192 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -1350,7 +1350,9 @@ void cmDocumentation ::PrintDocumentationCommand(std::ostream& os, const cmDocumentationEntry &entry) { - cmDocumentationSection *sec = new cmDocumentationSection("",""); + // the string "SingleItem" will be used in a few places to detect the case + // that only the documentation for a single item is printed + cmDocumentationSection *sec = new cmDocumentationSection("SingleItem",""); sec->Append(entry); this->AllSections["temp"] = sec; this->ClearSections(); |