Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

trim XML elements #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dsteinkopf
Copy link
Contributor

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
Copy link
Contributor

lexoyo commented Jul 29, 2019

Tested and it works
This is needed for wordpress 4.6 export

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants