some-programs / exitwp

Exitwp is tool primarily aimed for making migration from one or more wordpress blogs to the jekyll blog engine as easy as possible.
686 stars 145 forks source link

trim XML elements #75

Open dsteinkopf opened 5 years ago

dsteinkopf commented 5 years ago

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.

lexoyo commented 5 years ago

Tested and it works This is needed for wordpress 4.6 export