[Cmake-commits] CMake branch, next, updated. v2.8.8-2727-g23fb0b5
Brad King
brad.king at kitware.com
Thu Apr 26 16:32:33 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 23fb0b55989a27bca7e6f353a439b4b850b1f416 (commit)
via dfccdd65fb61198498f9d3211917afd4788bbc5d (commit)
from 230f840119d3854ecfbf6f44813b65eb6d5e92b9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=23fb0b55989a27bca7e6f353a439b4b850b1f416
commit 23fb0b55989a27bca7e6f353a439b4b850b1f416
Merge: 230f840 dfccdd6
Author: Brad King <brad.king at kitware.com>
AuthorDate: Thu Apr 26 16:32:29 2012 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Apr 26 16:32:29 2012 -0400
Merge topic 'doc-html-anchors' into next
dfccdd6 Documentation: Fix HTML anchor ranges
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dfccdd65fb61198498f9d3211917afd4788bbc5d
commit dfccdd65fb61198498f9d3211917afd4788bbc5d
Author: Brad King <brad.king at kitware.com>
AuthorDate: Mon Apr 23 17:15:08 2012 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Thu Apr 26 16:29:56 2012 -0400
Documentation: Fix HTML anchor ranges
Generate anchors of the form
<a name="..."></a>
instead of
<a name="..."/>
to ensure browsers know that the anchor contains no text and do not try
to guess an end of the range. Also make the "section_Index" and item
label anchors empty instead of containing the section header or label
text. This ensures that the text associated with target anchors is not
rendered as if it were a hyperlink.
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())
{
-----------------------------------------------------------------------
Summary of changes:
Source/cmDocumentationFormatterHTML.cxx | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list