summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 74bdc84..9cb99ee 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -307,13 +307,6 @@ void cmDocumentation::AddDocumentIntroToPrint(const char* intro[2])
bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
const char* docname)
{
- if ((this->CurrentFormatter->GetForm() != HTMLForm)
- && (this->CurrentFormatter->GetForm() != DocbookForm)
- && (this->CurrentFormatter->GetForm() != ManForm))
- {
- this->PrintVersion(os);
- }
-
// Handle Document Name. docname==0 disables intro.
this->SetDocName("");
if (docname)
@@ -394,7 +387,7 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
case cmDocumentation::Copyright:
return this->PrintCopyright(os);
case cmDocumentation::Version:
- return true;
+ return this->PrintVersion(os);
default: return false;
}
}