anuragsoni2000 / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Broken wrapping on XML closed tags #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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