This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 126040 - formatting instance document doesn't insert line breaks
Summary: formatting instance document doesn't insert line breaks
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on: 127319
Blocks: 108011 117610 118021 122501
  Show dependency tree
 
Reported: 2008-01-26 01:38 UTC by Chris Webster
Modified: 2008-02-27 19:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example xml file which does not result in adequate formatting (67.49 KB, text/plain)
2008-01-26 01:40 UTC, Chris Webster
Details
formatted test.xml (78.53 KB, text/plain)
2008-02-13 16:20 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2008-01-26 01:38:43 UTC
I have been working with XML documents which are "compressed" for RESTful service use by removing human readable
formatting. I want to be able to save these documents into xml files and use NetBeans to format the documents. When
formatting documents, such as the one attached, line breaks are not added and thus the documents are still difficult to
read. I would expect a format such as the format applied using the default Transformer in the JDK package to be applied,
one line per element, indented.
Comment 1 Chris Webster 2008-01-26 01:40:23 UTC
Created attachment 55597 [details]
example xml file which does not result in adequate formatting
Comment 2 Samaresh Panda 2008-02-01 15:09:53 UTC
There are several formatting related issues we should look at while working on this. Listing them here as dependents for
easier tracking, even though some may not be truly dependents.
Comment 3 Samaresh Panda 2008-02-13 16:20:43 UTC
Created attachment 56624 [details]
formatted test.xml
Comment 4 Samaresh Panda 2008-02-13 16:23:34 UTC
Chris, please see the attached formatted xml. I think this is 100 times better than before.
Comment 5 Chris Webster 2008-02-16 18:26:47 UTC
The formatting on this looks much better, definitely reasonable. 
Comment 6 Samaresh Panda 2008-02-20 04:56:32 UTC
Fix integrated: http://hg.netbeans.org/main?cmd=changeset;node=cdad61b5b4a8
Comment 7 tonybeckham 2008-02-27 19:38:55 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200802270005)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)