[Cmake-commits] [cmake-commits] king committed cmDocumentation.cxx 1.71 1.72

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 10 11:23:19 EDT 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv20556/Source

Modified Files:
	cmDocumentation.cxx 
Log Message:
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.


Index: cmDocumentation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentation.cxx,v
retrieving revision 1.71
retrieving revision 1.72
diff -C 2 -d -r1.71 -r1.72
*** cmDocumentation.cxx	19 Aug 2008 19:42:48 -0000	1.71
--- cmDocumentation.cxx	10 Oct 2008 15:23:17 -0000	1.72
***************
*** 635,639 ****
                                                     const std::string& filename)
  {
!   std::string ext = cmSystemTools::GetFilenameExtension(filename);
    ext = cmSystemTools::UpperCase(ext);
    if ((ext == ".HTM") || (ext == ".HTML"))
--- 635,639 ----
                                                     const std::string& filename)
  {
!   std::string ext = cmSystemTools::GetFilenameLastExtension(filename);
    ext = cmSystemTools::UpperCase(ext);
    if ((ext == ".HTM") || (ext == ".HTML"))



More information about the Cmake-commits mailing list