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 210269 - XML-Formatting is incorrect when the same element is used inside
Summary: XML-Formatting is incorrect when the same element is used inside
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 12:26 UTC by stefan79
Modified: 2012-04-08 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2012-03-28 12:26:01 UTC
[ BUILD # : 201203271056 ]
[ JDK VERSION : 1.7.3 ]

When you format the following XML-Sample: "<?xml version="1.0"
encoding="windows-1252"?><root><m1><m1></m1></m1></root>", you get the
following result:
--
<?xml version="1.0" encoding="windows-1252"?>
<root>
    <m1>
        <m1></m1>
        </m1>
</root>
--

Excepted result is:
<?xml version="1.0" encoding="windows-1252"?>
<root>
    <m1>
        <m1></m1>
    </m1>
</root>
Comment 1 Svata Dedic 2012-04-05 09:31:28 UTC
Changeset: 5d1ebe8d239d
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-04-05 11:31
Message:   Issue #210269 - XML-Formatting is incorrect when the same element is used inside: fixed
Fixed bad popup from indented element stack. Unit test added.
Comment 2 Quality Engineering 2012-04-08 09:53:51 UTC
Integrated into 'main-golden', will be available in build *201204080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5d1ebe8d239d
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #210269 - XML-Formatting is incorrect when the same element is used inside: fixed
Fixed bad popup from indented element stack. Unit test added.