Closed cbos closed 10 years ago
As test I added this xml:
<a><b>a</b></a>
It is changed to:
<a> <b>a</b> </a>
But the b tag is not indented. When you change the <a> tags to <ax> then it formatted to:
<a>
<ax>
<ax> <b>a</b> </ax>
I've made a fix for this here: https://github.com/benad/xml-formatter/commit/c58cca28c27619d31522581bd7952b5e058709b3 . This module badly needs some unit tests.
As test I added this xml:
It is changed to:
But the b tag is not indented. When you change the
<a>
tags to<ax>
then it formatted to: