From 657627c231caac9fe816f24ec2e98b895d13292a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 10 Oct 2008 11:23:17 -0400 Subject: BUG: Fix help type for filenames with many dots The help page type should be determined using only the extension after the last dot. See issue #7797. --- Source/cmDocumentation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 8b6f69e..acf8058 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -634,7 +634,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os) cmDocumentation::Form cmDocumentation::GetFormFromFilename( const std::string& filename) { - std::string ext = cmSystemTools::GetFilenameExtension(filename); + std::string ext = cmSystemTools::GetFilenameLastExtension(filename); ext = cmSystemTools::UpperCase(ext); if ((ext == ".HTM") || (ext == ".HTML")) { -- cgit v0.12