Bugs item #3460129, was opened at 2011-12-15 10:39
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=3460129&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: dom4j 1.6.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Pretty printing dies with empty text as first child

Initial Comment:
I just encountered a nasty bug in pretty printing, which causes a 
StringIndexOutOfBoundEception during pretty printing, Here is a code to 
reproduce the case:

Document d = DocumentHelper.createDocument();
Element root = d.addElement("Root");
root.addText("");
root.addElement("node");
OutputFormat format = OutputFormat.createPrettyPrint();
XMLWriter writer;
StringWriter xml = new StringWriter();
writer = new XMLWriter(xml, format);
writer.write(d);

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=3460129&group_id=16035

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to