al3x / simple-backup

Backup and export for Simplenote. Hosted on Google AppEngine
http://simple-backup.appspot.com/
Other
39 stars 3 forks source link

Evernote export requires basic HTML formatting #1

Closed eykanal closed 12 years ago

eykanal commented 12 years ago

Simplenote stores in plain text, with no formatting. Whitespace is dictated by newlines. Sample note in Simplenote:

Note title

This is a test

This is also a test

Evernote stores text in html format, as can be seen by examining the export files (.enex files). The above note looks as follows (some whitespace added):

<note><title>I like pickles</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
This is a test
<div><br/></div><div>This is also a test</div><div><br/></div></en-note>]]></content>
<created>20111213T144218Z</created></note>

The upshot is that, if I try to import the note without HTML delimiters into evernote, the note will invariably look like this:

Note title This is a test This is also a test

with no intelligent line breaks or anything.

The point of all this is to convey the message that the Evernote exporter needs to apply some basic HTML formatting to exported notes in order for notes to be readable in Evernote. As it is, long notes turn into walls of text.

Markdown formatting may be a good starting point. If there's something simpler which just turns whitespace into <div>'s and <br>'s as appropriate, that would work as well.

eykanal commented 12 years ago

So, turns out that Simplenote has made their own export app, which works properly. Anyone wishing to export to Evernote should use theirs, located at http://simplenote-export.appspot.com.