aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-10-06 08:03:54 +0000
committeracolyer <acolyer>2005-10-06 08:03:54 +0000
commit217d42e730871419136329e8d74df332c7541c75 (patch)
treec514e050cf7ac308c68681b2eddb14be7572b75c /ajdoc/src
parent3459ad57fc5af1ec01a0af3235775dfc9086ae7c (diff)
downloadaspectj-217d42e730871419136329e8d74df332c7541c75.tar.gz
aspectj-217d42e730871419136329e8d74df332c7541c75.zip
ensuring that this project can still be built at 1.3 level...
Diffstat (limited to 'ajdoc/src')
-rw-r--r--ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
index 3c064f573..b43b2c3de 100644
--- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
+++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
@@ -660,8 +660,17 @@ class HtmlDecorator {
}
static String generateHREFName(IProgramElement decl) {
- String hrefLink = decl.toLabelString().replace("\"", "quot;"); // !!!
- return hrefLink;
+ //String hrefLink = decl.toLabelString().replace("\"", "quot;"); // !!!
+ StringBuffer hrefLinkBuffer = new StringBuffer();
+ char[] declChars = decl.toLabelString().toCharArray();
+ for (int i = 0; i < declChars.length; i++) {
+ if (declChars[i] == '"') {
+ hrefLinkBuffer.append("quot;");
+ } else {
+ hrefLinkBuffer.append(declChars[i]);
+ }
+ }
+ return hrefLinkBuffer.toString();
}