Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 159349 - Formatting a particular xml file needs 2 passes to format it correctly.
Summary: Formatting a particular xml file needs 2 passes to format it correctly.
Status: CLOSED DUPLICATE of bug 115716
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: 1.0.3   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 1.5 RC5   Edit
Assignee: Amy Wu CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 15:47 EDT by Brian Jakubik CLA
Modified: 2006-11-28 15:58 EST (History)
1 user (show)

See Also:


Attachments
original file used to start the formatting with (501 bytes, text/xml)
2006-09-29 15:48 EDT, Brian Jakubik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Jakubik CLA 2006-09-29 15:47:23 EDT
I have a user that reported this issue so I am forwarding it on.

The user had a file that they tried to format, the first attempt formatted it, but still left things out of place, then the second attempt formatted it correctly.

The starting file (5.xml) was created from some output of a test program he had and it appears to have "no new lines" and is one long string.

I will attach the original file after this issue is created.

first format left the file in this state:
<?xml version="1.0" encoding="UTF-8"?>
<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml"
     initialstate="s00000">
     <state id="s00000">
          <transition target="s00001"></transition>     </state>     <state
          id="s00001">
          <transition target="s00002"></transition>     </state>     <state
          id="s00002">
          <transition target="s00003"></transition>     </state>     <state
          id="s00003">
          <transition target="s00004"></transition>     </state>     <state
          id="s00004">
          <transition target="exit"></transition>     </state>     <state
          id="exit" final="true" />
</scxml>

second format after the first puts in in the correct formatting state:
<?xml version="1.0" encoding="UTF-8"?>
<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml"
     initialstate="s00000">
     <state id="s00000">
          <transition target="s00001"></transition>
     </state>
     <state id="s00001">
          <transition target="s00002"></transition>
     </state>
     <state id="s00002">
          <transition target="s00003"></transition>
     </state>
     <state id="s00003">
          <transition target="s00004"></transition>
     </state>
     <state id="s00004">
          <transition target="exit"></transition>
     </state>
     <state id="exit" final="true" />
</scxml>
Comment 1 Brian Jakubik CLA 2006-09-29 15:48:26 EDT
Created attachment 51193 [details]
original file used to start the formatting with

Attached original file used to start the formatting with
Comment 2 Amy Wu CLA 2006-10-25 18:54:51 EDT
This has already been fixed in WTP 1.5 via bug 115716.  (I verified using 1.5.2 that the attached file now only takes 1 format pass to format)

*** This bug has been marked as a duplicate of 115716 ***
Comment 3 John Lanuti CLA 2006-11-28 15:58:41 EST
This is part of a mass update to close out all stale WTP resolved bugs from the 1.0.x and 1.5.0 timeframe.  If you feel this bug was closed inappropriately, please reopen.

Thanks, John Lanuti