summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-05-01 18:08:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-05-01 18:08:34 (GMT)
commit4db78c7c01621aa770d192a1170ad8ebff4f7b12 (patch)
treed2f83c8003654a54764026d871bfe7454611a098
parent2d8e2daffe6fc80057a224bd9d55e00d8927180a (diff)
parentdfccdd65fb61198498f9d3211917afd4788bbc5d (diff)
downloadCMake-4db78c7c01621aa770d192a1170ad8ebff4f7b12.zip
CMake-4db78c7c01621aa770d192a1170ad8ebff4f7b12.tar.gz
CMake-4db78c7c01621aa770d192a1170ad8ebff4f7b12.tar.bz2
Merge topic 'doc-html-anchors'
dfccdd6 Documentation: Fix HTML anchor ranges
-rw-r--r--Source/cmDocumentationFormatterHTML.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmDocumentationFormatterHTML.cxx b/Source/cmDocumentationFormatterHTML.cxx
index 6ced1e4..ed28b45 100644
--- a/Source/cmDocumentationFormatterHTML.cxx
+++ b/Source/cmDocumentationFormatterHTML.cxx
@@ -127,7 +127,7 @@ void cmDocumentationFormatterHTML
{
os << "<h2><a name=\"section_";
cmDocumentationPrintHTMLId(os, name);
- os << "\"/>" << name << "</h2>\n";
+ os << "\"></a>" << name << "</h2>\n";
}
// Is a list needed?
@@ -167,9 +167,9 @@ void cmDocumentationFormatterHTML
{
os << " <a name=\"" << prefix << ":";
cmDocumentationPrintHTMLId(os, op->Name.c_str());
- os << "\"><b><code>";
+ os << "\"></a><b><code>";
this->PrintHTMLEscapes(os, op->Name.c_str());
- os << "</code></b></a>: ";
+ os << "</code></b>: ";
}
this->PrintHTMLEscapes(os, op->Brief.c_str());
if(op->Full.size())
@@ -269,9 +269,9 @@ void cmDocumentationFormatterHTML
return;
}
- os << "<h2><a name=\"section_Index\">Master Index "
+ os << "<h2><a name=\"section_Index\"></a>Master Index "
<< "CMake " << cmVersion::GetCMakeVersion()
- << "</a></h2>\n";
+ << "</h2>\n";
if (!sections.empty())
{