BurnzZ / xml-aligner

Generic Aligner/Prettifier for XML documents
0 stars 0 forks source link

Ignore comments as block grouper #6

Closed BurnzZ closed 8 years ago

BurnzZ commented 8 years ago

Current implementation of ...

<img id = "main"                          src = "apple" />
<!-- This is a comment. -->
<img id = "secondary" src = "banana" />

would be ...

<img id = "main" src = "apple" />
<!-- This is a comment. -->
<img id = "secondary" src = "banana" />

A better behavior would be ...

<img id = "main"      src = "apple"  />
<!-- This is a comment. -->
<img id = "secondary" src = "banana" />
BurnzZ commented 8 years ago

Implemented in https://github.com/BurnzZ/xml-aligner/commit/eeee29dc7dcfdef9f6d3f16c38b68d52690c1962