Update of /var/cvs/src/org/mmbase/util/transformers
In directory james.mmbase.org:/tmp/cvs-serv10573

Modified Files:
        XmlField.java 
Log Message:
fixed a failing testing case with handleNewlines


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/transformers


Index: XmlField.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/transformers/XmlField.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- XmlField.java       10 Jun 2008 12:16:15 -0000      1.60
+++ XmlField.java       10 Jun 2008 12:26:29 -0000      1.61
@@ -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.60 2008/06/10 12:16:15 michiel Exp $
+ * @version $Id: XmlField.java,v 1.61 2008/06/10 12:26:29 michiel Exp $
  */
 
 public class XmlField extends ConfigurableStringTransformer implements 
CharTransformer {
@@ -750,7 +750,8 @@
     }
 
     protected static void handleNewlines(StringObject obj) {
-        obj.replace("</ul>\n", "</ul>"); // otherwise we will wind up with the 
silly "</ul><br />" the \n was necessary for </ul></p>
+        obj.replace("</ul>\n", "</ul>"); // otherwise we will wind up with the 
silly "</ul><br />  the \n was necessary for </ul></p>
+        obj.replace("</ol>\n", "</ol>");
         obj.replace("\n", "<br />");  // handle new remaining newlines.
     }
 
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to