samba / trombone

Converts Tomboy notes files to an Evernote export archive
8 stars 3 forks source link

html chars in title could be problem #2

Open haobug opened 9 years ago

haobug commented 9 years ago

i have used the code to covert my Gnote(C++ porting of tomboy) notes to evernote. it's wonderful. but i found the following issue.

the html special chars like <, > in the title field(not converted) will be a problem on importing. the Evernote will raise import error and fail there.

i have to edit the enex file manually on ever fail. after that it was imported successfully.

samba commented 9 years ago

@haobug thanks for reporting this. Unfortunately I won't be able to address this in the near future.

I believe this can be supported with a relatively small change in [Evernote/writer.py], around line 39, when it writes the <title> node for Evernote output.

If you find time, please feel free to post a pull request. Thanks!

haobug commented 9 years ago

i am new to python, but i will try.