Exported MusicXML files don't look pretty, indentation is wrong.
This is because musescore indents the next line after an opening tag, but forgets to UN-indent when writing the closing tag, every time!
A minor issue, but shouldn't be difficult to fix I guess?
Comments
Which version of MuseScore? Which OS?
If 1.x, please try to reproduce in the latest nightly build.
There won't be any fixes for 1.x.
Yes it's reproducible. But I believe it's a choice, not something forgotten. The code in MuseScore is also indented this way. See http://musescore.org/en/developers-handbook/musescore-coding-rules
This is by design and has been like this in all MuseScore versions. The MuseScore file format (which also is xml) uses the same indentation. Both the MuseScore and the MusicXML writer use the same code to write xml, which enforces the layout.
OK, it's not a bug, I understand. But I still don' t like it. If I take a look at MusicXML examples from //www.musicxml.com/music-in-musicxml/example-set/ and exported from Finale and others I always see an indentation scheme where the opening and closing tags are aligned.
For people who agree with me I have a solution. I use the "tidy" command //tidy.sourceforge.net/ on my Linux commandline to get what I want:
# tidy -i -xml mscore-example.xml > mscore-example2.xml
Apparently the makers of HTML tidy agree with me.