The prettify works great until it meets self closing tag.
Seems the module treats the self closing tag as an ordinary open tag. The immediate tag following it will be unnecessarily indented.
Affected version: 0.40.1
Expected result:
<body rid="1534525716"
xmlns="http://jabber.org/protocol/httpbind" sid="2c944b0e-b4a2-4bde-ab49-18f5e6527a72">
<message to="10109314143906760@example.org" type="chat"
xmlns="jabber:client">
<active
xmlns="http://jabber.org/protocol/chatstates"/>
</message>
<message from="5728655f00000101@example.org" to="10109314143906760@example.org" type="chat"
xmlns="jabber:client" id="10109314143906760@example.org:1462355916836">
<active
xmlns="http://jabber.org/protocol/chatstates"/>
<body>1</body>
<request
xmlns="urn:xmpp:receipts"/>
<request
xmlns="urn:maaii:receipts:server"/>
</message>
</body>
Actual result:
<body rid="1534525716"
xmlns="http://jabber.org/protocol/httpbind" sid="2c944b0e-b4a2-4bde-ab49-18f5e6527a72">
<message to="10109314143906760@example.org" type="chat"
xmlns="jabber:client">
<active
xmlns="http://jabber.org/protocol/chatstates"/>
</message>
<message from="5728655f00000101@example.org" to="10109314143906760@example.org" type="chat"
xmlns="jabber:client" id="10109314143906760@example.org:1462355916836">
<active
xmlns="http://jabber.org/protocol/chatstates"/>
<body>1</body>
<request
xmlns="urn:xmpp:receipts"/>
<request
xmlns="urn:maaii:receipts:server"/>
</message>
</body>
The prettify works great until it meets self closing tag.
Seems the module treats the self closing tag as an ordinary open tag. The immediate tag following it will be unnecessarily indented.
Affected version: 0.40.1
Expected result:
Actual result: