Skip to content

Commit

Permalink
Fix for ENEX files on Windows, thanks @dskrad
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
simonw committed Feb 11, 2021
1 parent 92254b7 commit 44e58ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evernote_to_sqlite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def save_note(db, note):
updated = note.find("updated").text
# Some content has   which breaks the XML parser
content_xml = note.find("content").text.replace(" ", "")
content = ET.tostring(ET.fromstring(content_xml)).decode("utf-8")
content = ET.tostring(ET.fromstring(content_xml.strip())).decode("utf-8")
row = {
"title": title,
"content": content,
Expand Down

0 comments on commit 44e58ba

Please sign in to comment.