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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:Looks like changing the
<br>tag to<br />fixes this. I'll make a PR shortly with the fix I'm using.Fantastic! I apply it. Thank you for your research and implementation efforts.
No worries! Thanks for the script, it's been a huge help.