Closed JJTech0130 closed 1 year ago
I see. I have to check but and I'm on vacation. Anyway, indentation is just formatting and doesn't cause and parse issues.
I know, it just makes it look weird π, so I thought I'd report it. I'm modifying it quite a bit already, to add hacks for namespaces and sorting (for signing), so I'll include the change in my version. (I tested this with an unmodified version, though) Doesn't seem to cause any harm so far, but I'll report here if I notice anything.
I'm trying to serialize an XML document that has a table inside a table, like this:
and I get something like this:
See how
targetDevice
and everything after it is indented?This seems to be caused by https://github.com/manoelcampos/xml2lua/blob/master/xml2lua.lua#L220, and after I removed it the issue is indeed resolved.
I'm hesitant to simply include that change in my project, though, because I am unaware of any side-effects it might have.