wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Extra new-lines added when I format the response body as XML #75

Open negora opened 6 years ago

negora commented 6 years ago

The last version of RESTClient is adding extra new-lines every time that I format the response body as XML. Such lines are added before and after every text node.

For example, version 3.6.1 formats this response well:

<response>
    <state>ok</state>
    <result>
        <sessionPublicCode>884d2aea-2bd8-43a9-89dd-fa7a91d15cfb</sessionPublicCode>
    </result>
</response>

But versions 3.6.2 and 3.7.0 do this:

<response>
    <state>
    ok    
    </state>
    <result>
        <sessionPublicCode>
        4cd57422-2cf0-4d15-83cc-acfc170da42e    
        </sessionPublicCode>
        <roleId>
        v    
        </roleId>
    </result>
</response>

If I click with the right button on the response body, and choose Format -> XML again, it adds other 2 extra new-lines to each text node. And so on.

I've also tried Format -> HTML (just to test), but it adds extra spaces instead of new-lines. It looks like the same defect, but with a different character.

Thank you!