Remove trailing whitespaces
Monkey patch the xml beautifier to keep empty lines