Merge topic 'doc-html-anchors'
dfccdd6
Documentation: Fix HTML anchor ranges
This commit is contained in:
commit
4db78c7c01
|
@ -127,7 +127,7 @@ void cmDocumentationFormatterHTML
|
||||||
{
|
{
|
||||||
os << "<h2><a name=\"section_";
|
os << "<h2><a name=\"section_";
|
||||||
cmDocumentationPrintHTMLId(os, name);
|
cmDocumentationPrintHTMLId(os, name);
|
||||||
os << "\"/>" << name << "</h2>\n";
|
os << "\"></a>" << name << "</h2>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is a list needed?
|
// Is a list needed?
|
||||||
|
@ -167,9 +167,9 @@ void cmDocumentationFormatterHTML
|
||||||
{
|
{
|
||||||
os << " <a name=\"" << prefix << ":";
|
os << " <a name=\"" << prefix << ":";
|
||||||
cmDocumentationPrintHTMLId(os, op->Name.c_str());
|
cmDocumentationPrintHTMLId(os, op->Name.c_str());
|
||||||
os << "\"><b><code>";
|
os << "\"></a><b><code>";
|
||||||
this->PrintHTMLEscapes(os, op->Name.c_str());
|
this->PrintHTMLEscapes(os, op->Name.c_str());
|
||||||
os << "</code></b></a>: ";
|
os << "</code></b>: ";
|
||||||
}
|
}
|
||||||
this->PrintHTMLEscapes(os, op->Brief.c_str());
|
this->PrintHTMLEscapes(os, op->Brief.c_str());
|
||||||
if(op->Full.size())
|
if(op->Full.size())
|
||||||
|
@ -269,9 +269,9 @@ void cmDocumentationFormatterHTML
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
os << "<h2><a name=\"section_Index\">Master Index "
|
os << "<h2><a name=\"section_Index\"></a>Master Index "
|
||||||
<< "CMake " << cmVersion::GetCMakeVersion()
|
<< "CMake " << cmVersion::GetCMakeVersion()
|
||||||
<< "</a></h2>\n";
|
<< "</h2>\n";
|
||||||
|
|
||||||
if (!sections.empty())
|
if (!sections.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue