Adjust formatting to formatting used by kxmlgui on writing
When adding a shortcut then kxmlgui writes this file with 1 character
indentation and with alphabetically sorted tag attributes.
GIT_SILENT
(cherry picked from commit 3b35c969b15ed444dc3a1d9a0a58c97de48f8977)