geeknote icon indicating copy to clipboard operation
geeknote copied to clipboard

checklist order is reversed on save

Open larcher opened this issue 9 years ago • 1 comments

Say you have a list of checkbox items, like this:

* [ ] thing 1
* [ ] thing 2
* [ ] thing 3

After you save that note, then go load it again (either with geeknote, a native Evernote app, or the Evernote website), the order will be reversed:

* [ ] thing 3
* [ ] thing 2
* [ ] thing 1

If you make a change and save again using Geeknote, the order will get re-reversed -- it appears to reverse the order of the list on every save.

If you have multiple lists, separated by non-list text, they will be reversed independently. This:

* [ ] thing 1
* [ ] thing 2

another list

* [ ] thing A
* [ ] thing B

... becomes this

* [ ] thing 2
* [ ] thing 1

another list

* [ ] thing B
* [ ] thing A

Non-checklist lists are not affected:

* thing 1
* thing 2
* thing 3

larcher avatar Feb 24 '16 21:02 larcher

I have the same problem. It seems being caused by loop "transforming [ ] lists to normal [ ] evernote elements" in checklistInSoupToENML function. Hacking out this loop solves the problem temporarily.

editor.py.diff.zip

csa7fff avatar Jun 19 '16 07:06 csa7fff