diff options
author | Jean-Luc Brouillet <jeanluc@google.com> | 2015-06-14 09:57:52 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-14 09:57:54 +0000 |
commit | 589464fc0c334f735dc02d25e9fdfb3b4869d881 (patch) | |
tree | 252fe42e05a31e090e881bd50bf887a097f2f060 | |
parent | e5359ae81f8a25a81e9b915d2f9802a9aa668ac2 (diff) | |
parent | 247c598d96c2445ab1a4c3a887438ce8c7353c06 (diff) | |
download | rs-589464fc0c334f735dc02d25e9fdfb3b4869d881.tar.gz |
Merge "Fix offset problem when jumping to an anchor mid-pages." into mnc-dev
-rw-r--r-- | api/GenerateDocumentation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/api/GenerateDocumentation.cpp b/api/GenerateDocumentation.cpp index 5f80bd46..565f4fb3 100644 --- a/api/GenerateDocumentation.cpp +++ b/api/GenerateDocumentation.cpp @@ -54,9 +54,11 @@ static void writeHeader(GeneratedFile* file, bool forVerification, const string& *file << "page.title=RenderScript " << title << "\n\n"; *file << "@jd:body\n\n"; } + *file << "<div class='renderscript'>\n"; } static void writeFooter(GeneratedFile* file, bool forVerification) { + *file << "</div>\n"; if (forVerification) { *file << "</body></html>\n"; } @@ -470,7 +472,7 @@ static bool writeDetailedConstant(GeneratedFile* file, Constant* constant) { } const string& name = constant->getName(); - *file << "<a id='android_rs:" << name << "'></a>\n"; + *file << "<a name='android_rs:" << name << "'></a>\n"; *file << "<div class='jd-details'>\n"; *file << " <h4 class='jd-details-title'>\n"; *file << " <span class='sympad'>" << name << "</span>\n"; @@ -509,7 +511,7 @@ static bool writeDetailedType(GeneratedFile* file, Type* type) { } const string& name = type->getName(); - *file << "<a id='android_rs:" << name << "'></a>\n"; + *file << "<a name='android_rs:" << name << "'></a>\n"; *file << "<div class='jd-details'>\n"; *file << " <h4 class='jd-details-title'>\n"; *file << " <span class='sympad'>" << name << "</span>\n"; @@ -538,7 +540,7 @@ static bool writeDetailedFunction(GeneratedFile* file, Function* function) { } const string& name = function->getName(); - *file << "<a id='android_rs:" << name << "'></a>\n"; + *file << "<a name='android_rs:" << name << "'></a>\n"; *file << "<div class='jd-details'>\n"; *file << " <h4 class='jd-details-title'>\n"; *file << " <span class='sympad'>" << name << "</span>\n"; |