Update of /var/cvs/src/org/mmbase/util/transformers
In directory james.mmbase.org:/tmp/cvs-serv348
Modified Files:
Tag: MMBase-1_8
XmlField.java
Added Files:
Tag: MMBase-1_8
ListParser.jj
Log Message:
MMB-1658
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/transformers
See also: http://www.mmbase.org/jira/browse/MMB-1658
ListParser.jj is new
Index: XmlField.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/transformers/XmlField.java,v
retrieving revision 1.46.2.6
retrieving revision 1.46.2.7
diff -u -b -r1.46.2.6 -r1.46.2.7
--- XmlField.java 10 Jun 2008 12:26:48 -0000 1.46.2.6
+++ XmlField.java 17 Jun 2008 10:18:58 -0000 1.46.2.7
@@ -20,7 +20,7 @@
* XMLFields in MMBase. This class can encode such a field to several other
formats.
*
* @author Michiel Meeuwissen
- * @version $Id: XmlField.java,v 1.46.2.6 2008/06/10 12:26:48 michiel Exp $
+ * @version $Id: XmlField.java,v 1.46.2.7 2008/06/17 10:18:58 michiel Exp $
* @todo THIS CLASS NEEDS A CONCEPT! It gets a bit messy.
*/
@@ -62,6 +62,17 @@
* Takes a string object, finds list structures and changes those to XML
*/
static void handleList(StringObject obj) {
+ String result = ListParser.transform(obj.toString());
+ obj.setLength(0);
+ obj.append(result);
+ }
+
+ /**
+ * This is the original implementation of [EMAIL PROTECTED] #handleList},
but withouth suppport lists in
+ * lists (MMB-1658). Code pretty much incomprehensible as it is, so didn't
add support for this
+ * here, but redid it in ListParser.jj.
+ */
+ private static void handleListLegacy(StringObject obj) {
// handle lists
// make <ul> possible (not yet nested), with -'s on the first char of
line.
int inList = 0; //
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs