Spaces at the end of lines should not be stripped

There are some posts with XML in the headers. When you strip the leading spaces you will receive invalid XML.