Since one of the recent WordPress updates (something > 5.0) I have to following problem:
Most of the XML elements contain lots of unnecessary space (esp. tabs and newlines) at the beginning and/or at the end. This results in the markdown files created by exitwp containing lots of \n\t\t\t\t (or similar).
This PR contains a simple change: It adds .strip() to remove those spaces. For me, this works fine.
Since one of the recent WordPress updates (something > 5.0) I have to following problem:
Most of the XML elements contain lots of unnecessary space (esp. tabs and newlines) at the beginning and/or at the end. This results in the markdown files created by exitwp containing lots of
\n\t\t\t\t
(or similar).This PR contains a simple change: It adds
.strip()
to remove those spaces. For me, this works fine.