Fix editor.py for windows users
Remove last <br/> tags inside a <li>
Changes the way we "uglify" html code, fixes <code><pre> blocks.
Calling gnsync under windows raises: > Error while parsing text to html. > Content must be an utf-8 encode. Global name 'self' is not defined on line 85 in editor.py I replaced it with a straight call to the Editor object. --- -2 typos :-)
Previously we were using a very aggressive way of removing new lines. This completely messed up with code blocks, using BeautifulSoup we can do it in a intelligent way.
Evernote likes to break everything by sometimes adding extra <br/> right before the </li> or <ul> tags, adding some weird spacing when on markdown.
Makes --content optional for create related to issue #148
Corrects README.md --content is optional on edit
Fixes Issue with Newlines between nested lists.
Specify that python2 (not python3) is required
Issue #88: Implemented continuing saving during editing in system editor...
notepad -> notebook
Basically the issue is that when you have a nested list: - Item - Item 1 - Item 2 And you save that in Geeknote. When you open it again you get: - Item - Item 1 - Item 2 Note the separation between the two. The reason for this to happen, is that Evernote adds a <p> inside the li that has a nested <ul> element. The above commit just removes that <p> so that html2text outputs some correct markdown. Conflicts: geeknote/editor.py
…rev checksum after first saving.
Closed #92: Replaced markdown library by markdown2
Use a more portable way of finding the users login.
os.getlogin() isn't reliable, and requires a login shell for it to work. A more portable method is to use getuser from the getpass module. Reference: https://stackoverflow.com/questions/842059/is-there-a-portable-way-to-get-the-current-username-in-python http://www.postgresql.org/message-id/20060512221230.0D04486C565@pgfoundry.org
…le searching. Plus few changes in README.
Conflicts: README.md geeknote/editor.py geeknote/geeknote.py geeknote/gnsync.py geeknote/oauth.py geeknote/out.py setup.py