aboutsummaryrefslogtreecommitdiffstats
path: root/tools/droiddoc
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-09-26 16:21:13 +0100
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-09-26 16:36:03 +0000
commita7edd92c457879f2719afe6b5d119886b869182f (patch)
tree12a263c6eafcf7d775f200afc619b07453f70793 /tools/droiddoc
parentfc61720cd5cc978c7d9ca3c9767b5193fd6b3517 (diff)
downloadplatform_build-a7edd92c457879f2719afe6b5d119886b869182f.tar.gz
platform_build-a7edd92c457879f2719afe6b5d119886b869182f.tar.bz2
platform_build-a7edd92c457879f2719afe6b5d119886b869182f.zip
Fix for non-empty a[name] tags in openJdk based javadocs.
openJdk based android javadoc contains <a name=... tags that are non-empty. Currently they are being hidden, causing badly formatted pages for some java.* classes (missing text and random whitespace blocks). This change makes the existing a[name] hiding rule apply only to empty tags. Test: make docs Bug: 31700998 Change-Id: Ifa75bbabe308d7aed0cce6165c1113e5a382a121
Diffstat (limited to 'tools/droiddoc')
-rw-r--r--tools/droiddoc/templates-ndk/assets/css/default.css2
-rw-r--r--tools/droiddoc/templates-sdk/assets/css/default.css6
2 files changed, 3 insertions, 5 deletions
diff --git a/tools/droiddoc/templates-ndk/assets/css/default.css b/tools/droiddoc/templates-ndk/assets/css/default.css
index f411d9347c..036c0eb378 100644
--- a/tools/droiddoc/templates-ndk/assets/css/default.css
+++ b/tools/droiddoc/templates-ndk/assets/css/default.css
@@ -4217,7 +4217,7 @@ EndColorStr='#ececec');
}
/* offset the <a name=""> tags to account for sticky nav */
-body.reference a[name] {
+body.reference a[name]:empty {
visibility: hidden;
display: block;
position: relative;
diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css
index e422d75cec..9e5df48e33 100644
--- a/tools/droiddoc/templates-sdk/assets/css/default.css
+++ b/tools/droiddoc/templates-sdk/assets/css/default.css
@@ -3322,20 +3322,18 @@ table.jd-tagtable th {
display: none;
}
-/* offset the <a name=""> tags to account for sticky nav */
-body.reference a[name]:not(.nav-start-marker) {
+/* offset the empty <a name=""> tags to account for sticky nav */
+body.reference a[name]:not(.nav-start-marker):empty {
visibility: hidden;
display: block;
position: relative;
top: -56px;
-
}
.nav-start-marker {
position: absolute;
}
-
/* Quicknav */
.btn-quicknav {
width:20px;