diff options
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 13 |
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(); } |