Dear DOM4jers,

Oh what a surprise when I got that, again, my words are cut in Jelly... but my tests in TestHTMLWriter and TestXMLWriter were running...

OK, so Jelly is using directly the SAX' characters method... attached a simple which shows that the XMLWriter inserts spaces unduely.

I haven't worked on a fix... but I think I remember that I posted a fix which was repairing somewhat exactly what I see is here...

thanks

paul


Here's the extra test: public void testBug923882asWriter() throws Exception { // use an the HTMLWriter sax-methods. // StringWriter buffer = new StringWriter(); HTMLWriter writer = new HTMLWriter(buffer,makePrettyPrintFormat()); writer.characters("wor".toCharArray(),0,3); writer.characters("d-being-cut".toCharArray(), 0,11); String expected = "word-being-cut"; System.out.println("Comparing \"" +expected+ "\" to \"" + buffer + "\"."); assertEquals(expected,buffer.toString()); }



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to