From 217d42e730871419136329e8d74df332c7541c75 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 6 Oct 2005 08:03:54 +0000 Subject: [PATCH] ensuring that this project can still be built at 1.3 level... --- .../src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 13 +++++++++++-- 1 file 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(); } -- 2.39.5