louietan / anki-editor

Emacs minor mode for making Anki cards with Org
700 stars 87 forks source link

empty drawer gets imported into anki fields #20

Closed 517qf closed 6 years ago

517qf commented 6 years ago

if the property drawer is empty like this

** Back
:PROPERTIES:
:END:

and I push this note into Anki I expected an empty Back field. But in the field Back I get this html source code:

<p>
:PROPERTIES:
nil:END:
</p>

I think an empty property drawer is unusual but valid according to the org syntax? I think this is an error. Unfortunately I don't know how to change your source code.

I ran into this issue because when I deleted the only property from a drawer but left these opening and closing elements.

Thanks for your time and great software!

louietan commented 6 years ago

683c48dfec830ba60bad642621e26eb4d385606d is going to fix this.