Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken wrapping on XML closed tags #168

Open
GoogleCodeExporter opened this issue Feb 12, 2016 · 0 comments
Open

Broken wrapping on XML closed tags #168

GoogleCodeExporter opened this issue Feb 12, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Using the following input.

What is the expected output? What do you see instead?

Input:

  <pre id="sandbox_response" class="brush: xml; wrap:true;">
<?xml version="1.0"?>
<api>
 <messages>
  <message>
   <type>SUCCESS</type>
   <code>0</code>

   <payload>
    <user_data>
     <title>Mr</title>
     <first_name>xxx</first_name>
     <last_name>xxx</last_name>
     <organisation_name>xxx</organisation_name>
     <year>test</year>
     <group/>

     <house/>
     <sex>MALE</sex>
     <user_type>USER</user_type>
     <reward_budget_spent>TODO</reward_budget_spent>
     <reward_budget_allowance>TODO</reward_budget_allowance>
     <reward_budget_period>TODO</reward_budget_period>

     <summary_date>2010-09-03T10:42:24+00:00</summary_date>
    </user_data>
   </payload>
  </message>
 </messages>
</api>
  </pre>


Output:
<api>
 <messages>
  <message>
   <type>SUCCESS</type>
   <code>0</code>
   <payload>
    <user_data>

     <first_name>xxx</first_name>
     <last_name>xxx</last_name>
     <organisation_name>xxx</organisation_name>
     <year>test</year>
     <group>
     <house>
     <sex>MALE</sex>
     <user_type>USER</user_type>
     <reward_budget_spent>TODO</reward_budget_spent>
     <reward_budget_allowance>TODO</reward_budget_allowance>
     <reward_budget_period>TODO</reward_budget_period>
     <summary_date>2010-09-03T10:42:24+00:00</summary_date>
    </house>
   </group>
  </user_data>
 </payload>
</message>
  </messages></api>
What version of the product are you using? On what operating system?
3.0.83 (July 02 2010)

Please provide any additional information below.

Notice house and group elements now wrap the wrong elements and should be 
closed.

     <group>
     <house>
     <sex>MALE</sex>
     <user_type>USER</user_type>
     <reward_budget_spent>TODO</reward_budget_spent>
     <reward_budget_allowance>TODO</reward_budget_allowance>
     <reward_budget_period>TODO</reward_budget_period>
     <summary_date>2010-09-03T10:42:24+00:00</summary_date>
    </house>
   </group>


Original issue reported on code.google.com by andrew.j...@gmail.com on 3 Sep 2010 at 10:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant