private String replaceTags(String orig, String relPath) { String result = orig.replaceAll("(?m)^\\s*\\*", ""); // todo precompile regex // {@link processing hack} result = replaceAllTags(result, "", "", LINK_REGEX, relPath); // {@code processing hack} result = replaceAllTags(result, "<TT>", "</TT>", CODE_REGEX, relPath); // hack to reformat other groovydoc block tags (@see, @return, @param, @throws, @author, @since) into html result = replaceAllTags(result + "@endMarker", "<DL><DT><B>$1:</B></DT><DD>", "</DD></DL>", TAG_REGEX, relPath); // remove @endMarker result = result.substring(0, result.length() - 10); return SimpleGroovyClassDoc.decodeSpecialSymbols(result); }
private String replaceTags(String orig, String relPath) { String result = orig.replaceAll("(?m)^\\s*\\*", ""); // todo precompile regex // {@link processing hack} result = replaceAllTags(result, "", "", LINK_REGEX, relPath); // {@code processing hack} result = replaceAllTags(result, "<TT>", "</TT>", CODE_REGEX, relPath); // hack to reformat other groovydoc block tags (@see, @return, @param, @throws, @author, @since) into html result = replaceAllTags(result + "@endMarker", "<DL><DT><B>$1:</B></DT><DD>", "</DD></DL>", TAG_REGEX, relPath); // remove @endMarker result = result.substring(0, result.length() - 10); return SimpleGroovyClassDoc.decodeSpecialSymbols(result); }
private String replaceTags(String orig, String relPath) { String result = orig.replaceAll("(?m)^\\s*\\*", ""); // todo precompile regex // {@link processing hack} result = replaceAllTags(result, "", "", LINK_REGEX, relPath); // {@code processing hack} result = replaceAllTags(result, "<TT>", "</TT>", CODE_REGEX, relPath); // hack to reformat other groovydoc block tags (@see, @return, @param, @throws, @author, @since) into html result = replaceAllTags(result + "@endMarker", "<DL><DT><B>$1:</B></DT><DD>", "</DD></DL>", TAG_REGEX, relPath); // remove @endMarker result = result.substring(0, result.length() - 10); return SimpleGroovyClassDoc.decodeSpecialSymbols(result); }
private String replaceTags(String orig, SimpleGroovyPackageDoc packageDoc) { String result = orig.replaceAll("(?m)^\\s*\\*", ""); // todo precompile regex // {@link processing hack} result = replaceAllTags(result, "", "", SimpleGroovyClassDoc.LINK_REGEX, packageDoc); // {@code processing hack} result = replaceAllTags(result, "<TT>", "</TT>", SimpleGroovyClassDoc.CODE_REGEX, packageDoc); // hack to reformat other groovydoc block tags (@see, @return, @param, @throws, @author, @since) into html result = replaceAllTags(result + "@endMarker", "<DL><DT><B>$1:</B></DT><DD>", "</DD></DL>", SimpleGroovyClassDoc.TAG_REGEX, packageDoc); // remove @endMarker result = result.substring(0, result.length() - 10); return SimpleGroovyClassDoc.decodeSpecialSymbols(result); }