Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Incomplete import from Evernote - no body text #2856

Closed
AlanCDavis-GH opened this issue Sep 21, 2023 · 11 comments
Closed

[BUG] Incomplete import from Evernote - no body text #2856

AlanCDavis-GH opened this issue Sep 21, 2023 · 11 comments
Labels
Severity: Medium Bugs or breaking changes with medium impact Type: Upstream-problem
Milestone

Comments

@AlanCDavis-GH
Copy link

Expected behaviour

Import of Evernote .enex file creates relatively faithful representation of original
Evernote Mac 10.60.4
QOwnNotes 23.9.4 Mac

Actual behaviour

Import creates entry for each note, including front-matter if selected. It adds image links for all images to every note in the default folder. It doesn't include any of the body text from the original.

Steps to reproduce

Export single note or notebook from Evernote to .enex.
Select Note / Import / Import from Evernote
Select front-matter to include
Select Import

Output from the debug section in the settings dialog

Expand

Relevant log output in the Log panel

Expand
[basic.enex.txt](https://github.com/pbek/QOwnNotes/files/12679385/basic.enex.txt) [basic.md](https://github.com/pbek/QOwnNotes/files/12679388/basic.md)
@pbek
Copy link
Owner

pbek commented Sep 21, 2023

basic.enex.txt basic.md

@pbek
Copy link
Owner

pbek commented Sep 21, 2023

Hm, enex file looks ok, need to do more tests... The other exports I have still work.

@pbek
Copy link
Owner

pbek commented Sep 21, 2023

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export4.dtd">
<en-export export-date="20231021T014711Z" application="Evernote" version="10.60.4">
  <note>
    <title>basic</title>
    <note-attributes>
    </note-attributes>
    <content>
      <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note><div>testing</div><div>1</div><div>2</div><div>3</div></en-note>      ]]>
    </content>
  </note>
</en-export>

Qt's XML parser trips over the white spaces in front of the <![CDATA[. I can't find anything about if using white spaces in front of it is part of the XML spec... 🤔

@pbek
Copy link
Owner

pbek commented Sep 21, 2023

Since there are valid characters in front of the <![CDATA[ (the white spaces) those characters are parsed correctly, resulting in an empty content.

@pbek
Copy link
Owner

pbek commented Sep 21, 2023

I'll try to get around that without losing the ability to import older enex exports.

@pbek pbek added Type: Upstream-problem Severity: Medium Bugs or breaking changes with medium impact and removed Type: Support labels Sep 21, 2023
@pbek pbek added this to the 23.9.5 milestone Sep 21, 2023
@pbek
Copy link
Owner

pbek commented Sep 21, 2023

23.9.5

  • an issue with importing the content of notes from Evernote with the evernote-export4
    format was fixed (for #2856)

@AlanCDavis-GH
Copy link
Author

AlanCDavis-GH commented Sep 21, 2023 via email

@pbek
Copy link
Owner

pbek commented Sep 22, 2023

There now is a new release, could you please test it and report if it works for you?

@AlanCDavis-GH
Copy link
Author

AlanCDavis-GH commented Sep 22, 2023 via email

@pbek
Copy link
Owner

pbek commented Sep 22, 2023

Great, thank you for testing 😉

@pbek pbek closed this as completed Sep 22, 2023
@pbek
Copy link
Owner

pbek commented Sep 22, 2023

Oh, and thanks a lot for your generous donation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Medium Bugs or breaking changes with medium impact Type: Upstream-problem
Projects
None yet
Development

No branches or pull requests

2 participants