Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect drawer parsing #3

Open
amake opened this issue Mar 13, 2021 · 0 comments
Open

Incorrect drawer parsing #3

amake opened this issue Mar 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@amake
Copy link
Owner

amake commented Mar 13, 2021

The first drawer doesn't end at the correct :END: but continues to the second :END:.

* Node with a generic drawer
  :PROPERTIES:
  :expectedNodes: 6
  :archivedNodes:2
  :END:
  you can define also the drawer using the following directive....
#+DRAWERS: DRAWER_ONE DRAWER_TWO Drawer1 Drawer2
:DRAWER_ONE:
I am drawer one, with one line
:END:
* A second drawer
  :DRAWER_TWO:
  Different alignment baby
  Declared drawer cannot have different alignment, as far as we know
  :END:
*** A very complex drawer case    :indentedDrawerTest:
  :Drawer1:
  Nice to meet you, unindented I hope
  :END:
  :Drawer2:
  Another one
  :END:
*** Another complex case :complexDrawerMix:
In this header, drawer are mixed in a fancy way
:Drawer1:
Drawer1 content
:END:
Test below drawer1
Text above drawer2
:Drawer2:
Drawer2 content
:END:
Text below drawer2
* Archived node							    :ARCHIVE:
This node is archived baby
* Archived node with drawer :ARCHIVE:
  :DRAWER_ONE:
  I am drawer inside an archived node
  :END:

From https://github.com/daitangio/org-mode-parser/blob/d57cc21720268d75c4a6fa55b799cad8ad9d3394/test/drawerAndArchiveTag.org

@amake amake added the bug Something isn't working label Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant