header text: newline not saved correctly in LibreOffice
Created originally on Bitbucket by krescht (Christian)
Newlines in the header text are not saved correctly, if you open it in LibreOffice, it shows
_x000d__x000a_ instead of a simple newline.
I added the newline on Windows using
os.linesep
to get the platform-independent newline.
Using only
\n
didn’t work either.
The more I describe it, the more it looks like a LibreOffice bug, but I might be wrong.
The header is shown correctly in MS Office 2010 and 2013.