Notes with newlines not being imported into Evernote #6

Closed
opened 2020-11-23 05:28:44 +01:00 by kcereru · 2 comments
kcereru commented 2020-11-23 05:28:44 +01:00 (Migrated from github.com)

On trying to import several thousand notes into Evernote from Standard Notes, I found that any note containing a newline was being imported with blank content.

The source of this seems to be the <br> tag they're being converted to. From the docs at https://dev.evernote.com/doc/articles/enml.php:

Because ENML is based on XHTML and must strictly comply with the ENML DTD, there are a couple of things you should keep in mind. Every tag must be closed and properly balanced, so instead of using <hr>, you must use <hr/>. Tag names must be all lowercase.

Looks like changing the <br> tag to <br /> fixes this. I'll make a PR shortly with the fix I'm using.

On trying to import several thousand notes into Evernote from Standard Notes, I found that any note containing a newline was being imported with blank content. The source of this seems to be the `<br>` tag they're being converted to. From the docs at https://dev.evernote.com/doc/articles/enml.php: > Because ENML is based on XHTML and must strictly comply with the ENML DTD, there are a couple of things you should keep in mind. Every tag must be closed and properly balanced, so instead of using `<hr>`, you must use `<hr/>`. Tag names must be all lowercase. Looks like changing the `<br>` tag to `<br />` fixes this. I'll make a PR shortly with the fix I'm using.
tanrax commented 2020-11-23 06:35:05 +01:00 (Migrated from github.com)

Fantastic! I apply it. Thank you for your research and implementation efforts.

Fantastic! I apply it. Thank you for your research and implementation efforts.
kcereru commented 2020-11-23 07:45:20 +01:00 (Migrated from github.com)

No worries! Thanks for the script, it's been a huge help.

No worries! Thanks for the script, it's been a huge help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: andros/standard-notes-to-evernote-or-joplin#6