summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2018-05-24 13:49:12 -0700
committerAndrew Solovay <asolovay@google.com>2018-07-02 18:40:18 +0000
commita78bc8ffe3ac14e4648f967c84940f8ce1a00ec9 (patch)
tree7c046bc0a14ac39164f318e8aacb2a6d31e920ae /src
parent651fcf9089db41046473320602883ffd4a3bba60 (diff)
downloaddoclava-a78bc8ffe3ac14e4648f967c84940f8ce1a00ec9.tar.gz
Escape space chars in anchor tags, remove legacy <a> tags for anchors, and cleanup legacy DAC markup. The non-escaped spaces have been a long-standing issue that created incompatible behaviors on the new devsite design. Escaping these is the right thing to do, but yes, it will break some existing links that use the old URLs with actual spaces. We'll need to resolve those over time. Using the <a> tags resulted in bad vertical positioning, so this now puts the anchor name in the header tag with the id attribute. Also lots of removal of legacy "apilevel" class names, and addition of the data attribute where it was still missing. bug: 79995820 (escape spaces) bug: 80256515 (remove "apilevel" classes) test: make ds-docs sample of results at http://cl/202985750 (and as expected, there are no changes to templates--that CL just shows a few doc changes in pi-dev that didn't make it into DP4). Change-Id: I038cd4abfdd498f82740aeb149cbaabd252d3ff1 (cherry picked from commit 8419b994cbc03f7921499d2ed92dcfffa57ace81)
Diffstat (limited to 'src')
-rw-r--r--src/com/google/doclava/MemberInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/google/doclava/MemberInfo.java b/src/com/google/doclava/MemberInfo.java
index 797b1b9..2854ab5 100644
--- a/src/com/google/doclava/MemberInfo.java
+++ b/src/com/google/doclava/MemberInfo.java
@@ -59,7 +59,7 @@ public abstract class MemberInfo extends DocInfo implements Comparable, Scoped {
public String anchor() {
if (mSignature != null) {
- return mName + mSignature;
+ return mName + mSignature.replace(" ", "%20");
} else {
return mName;
}