Hi Manfred
Thanks for spotting this. I managed to reproduce your problem in the JUnit
test case in dom4j/src/test at org.dom4j.TestXMLWriter in the
testWhitespaceBug() method.
I've patched the XMLWriter to handle this case properly which is now in CVS,
so now whitespace handing when in trimText mode should work properly I
think.
James
----- Original Message -----
From: "Manfred Lotz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 20, 2002 3:06 PM
Subject: [dom4j-user] XMLWriter bug !!?
> Hi there,
>
> I'm doing a prettyprinting using the following options:
>
>
> OutputFormat format = new OutputFormat();
> format.setEncoding("UTF-8");
> format.setIndentSize(4);
> format.setNewlines(true);
> format.setTrimText(true);
> format.setExpandEmptyElements(true);
>
>
>
> If in my XML-file I have a multiline entry like this:
>
> <notes> This is a multiline
> entry</notes>
>
>
> the output of the prettyprint looks like this:
>
> <notes>This is a multilineentry</notes>
>
> instead of
> <notes>This is a multiline entry</notes>
>
> which I would prefer.
>
> Is this a bug?
>
>
> --
> Manfred
>
>
>
>
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user