alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files
MIT License
534 stars 135 forks source link

Strange New Lines in Sublime Text 3 #56

Closed ghost closed 8 years ago

ghost commented 10 years ago

I got an xml that contains elements like this: <version> 1 </version>

I expect them to be converted to
<version>1</version>

like in V2 but it results in <version>1 </version>

Not sure if i missed some config here.

alek-sys commented 10 years ago

Looks like a specific to how minidom prettyxml formatter works.. not sure if I can do something, but will take a look

alek-sys commented 8 years ago

I'd say this is excepted behavior - you text is exactly '1' so formatter just keeps that. I think modification of content in any way is not a good idea.