StjerneIdioten / I3D-Blender-Addon

Rewriting the I3D blender addon from scratch and adding long-sought community features
GNU General Public License v3.0
66 stars 18 forks source link

[Bug Report] Deleting EmptySpace in XML after exporting i3dMappings #185

Closed nilBrain closed 9 months ago

nilBrain commented 10 months ago

After exporting, empty lines of the XML are deleted, even outside the 'i3dMappings' section, and tabs become 2x specCharacter...

StjerneIdioten commented 10 months ago

Could you provide an example? :-)

nilBrain commented 10 months ago

Befor export:

Bild_2023-10-11_181821984

After: Bild_2023-10-11_181912868

StjerneIdioten commented 10 months ago

That shows the spaces have been altered, but what about the tabs you are talking about?

StjerneIdioten commented 10 months ago

Anyway, I will see what I can do about it. Right now I am treating the files as XML (which they sort of are) and using Pythons xml libraries, but the problem is that the GE files really aren't proper xml files (xml is not supposed to be modified by humans). So none of the libraries respect any of the formatting. But I guess I will just have to do a dumb text replace instead.