fix formatting of xml blocks