neyestrabelli / xml-formatter

Simple XML Formatter for Atom
MIT License
22 stars 7 forks source link

Putting CDATA on new line #4

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hello,

Love the plugin works like a treat however, there is one observation I have noticed around CDATA. When processing XML via an XSLT if the CDATA is on a new line like such:

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <line1>line1</line1>
    <line2>
        <![CDATA[Example CDATA Content]]>
    </line2>
</root>

This can cause issues when transforming the XML with return lines in strange places, would it be possible to get CDATA to be on the same line so:

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <line1>line1</line1>
    <line2><![CDATA[Example CDATA Content]]></line2>
</root>
neyestrabelli commented 10 years ago

Hi @michaelkdown , thanks by suggestion.

Try the new version 0.7.0 :)

ghost commented 10 years ago

Brilliant, I'll give it a try now!

ghost commented 10 years ago

Works like a dream!

neyestrabelli commented 10 years ago

:+1: