Paul,

I've committed a new XMLWriter class to CVS to solve your issue. I hope
it's finally fixed now, could you check it out? If it still doesn't work
as expected, could you
provide some additional junit tests that illustrate the possible
problem(s)?

thanks,
Maarten

On Fri, 4 Jun 2004, Paul Libbrecht wrote:

>
> 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
>



-------------------------------------------------------
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