Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/Attic/VoteUtils.java,v diff -u -r1.9 -r1.10 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 27 May 2006 19:19:33 -0000 1.9 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/VoteUtils.java 27 May 2006 19:28:35 -0000 1.10 @@ -206,28 +206,21 @@ public static String stripFCKTags(String htmlText) { - logger.debug("stripping html text: " + htmlText); String noHTMLText = htmlText.replaceAll("\\<.*?\\>","").replaceAll(" ","").replaceAll("&#[0-9][0-9][0-9][0-9];",""); - logger.debug("noHTMLText: " + noHTMLText); - String[] htmlTokens = noHTMLText.split("\n"); - logger.debug("htmlTokens: " + htmlTokens); - logger.debug("htmlTokens: " + htmlTokens.length); - String noHtmlNoNewLineTitle=""; + String noHtmlNoNewLineStr=""; for (int i=0; i < htmlTokens.length ; i++) { - logger.debug("htmltoken: " + htmlTokens[i]); if (!htmlTokens[i].trim().equals("")) { - noHtmlNoNewLineTitle= noHtmlNoNewLineTitle + " " + htmlTokens[i]; + noHtmlNoNewLineStr= noHtmlNoNewLineStr + " " + htmlTokens[i]; } } - logger.debug("final noHtmlNoNewLineTitle: " + noHtmlNoNewLineTitle); - if (noHtmlNoNewLineTitle.length() > 30) - return noHtmlNoNewLineTitle.substring(0,31); + if (noHtmlNoNewLineStr.length() > 50) + return noHtmlNoNewLineStr.substring(0,51); - return noHtmlNoNewLineTitle; + return noHtmlNoNewLineStr; }