[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel ...
Christian Bauer
christian at hibernate.org
Thu Aug 30 12:51:00 EDT 2007
User: cbauer
Date: 07/08/30 12:51:00
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel
SearchSupport.java
Log:
Finished Blosxom importer (not perfect though) and minor bugfixes
Revision Changes Path
1.3 +3 -3 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel/SearchSupport.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SearchSupport.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/search/metamodel/SearchSupport.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SearchSupport.java 17 Aug 2007 13:00:32 -0000 1.2
+++ SearchSupport.java 30 Aug 2007 16:51:00 -0000 1.3
@@ -85,7 +85,7 @@
String unescapedFragements =
highlighter.getBestFragments(tokenStream, indexedText, numOfFragments, getFragmentSeparator());
- String escapedFragments = WikiUtil.escapeHtml(unescapedFragements);
+ String escapedFragments = WikiUtil.escapeHtml(unescapedFragements, false);
// .. and then replace the internal placeholders with real tags after HTML has been escaped
escapedFragments = escapedFragments.replaceAll(INTERNAL_BEGIN_HIT, getBeginHitTag());
@@ -97,10 +97,10 @@
indexedText.substring(
0,
indexedText.length()>alternativeLength ? alternativeLength : indexedText.length()
- )
+ ), false
);
} else if (escapedFragments.length() == 0 && alternativeLength == 0){
- return WikiUtil.escapeHtml(indexedText);
+ return WikiUtil.escapeHtml(indexedText, false);
}
return escapedFragments;
More information about the jboss-cvs-commits
mailing list