wocommunity / wolips

wolips
53 stars 53 forks source link

Reformat HTML deletes CDATA [WOL-1191] #29

Open timcu opened 12 years ago

timcu commented 12 years ago

I have the following in the WOComponent html file

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env = "http://schemas.xmlsoap.org/soap/envelope/">
  <soap-env:Body>
    <eg:example xmlns:eg = "http://example.com" >
      <![CDATA[my <b>html></b> snippet]]>
    </eg:example>
  </soap-env:Body>
</soap-env:Envelope>

After I select menu item Edit -> Refactor -> Format (cmd-shift-f) I get

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env = "http://schemas.xmlsoap.org/soap/envelope/">
  <soap-env:Body>
    <eg:example xmlns:eg = "http://example.com">
    </eg:example>
  </soap-env:Body>
</soap-env:Envelope>

Note that the CDATA has been completely deleted. I would expect the CDATA to be left untouched by the reformat process.