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

Logbook drawer tags are not removed from body text #59

Open
j3soon opened this issue Nov 12, 2022 · 1 comment
Open

Logbook drawer tags are not removed from body text #59

j3soon opened this issue Nov 12, 2022 · 1 comment

Comments

@j3soon
Copy link
Contributor

j3soon commented Nov 12, 2022

This issue is also mentioned in #38, but haven't been resolved in the latest version 36b31d8.

Test case (repeated task), modified from doctest:

>>> from orgparse import loads
>>> node = loads('''
... * TODO Pay the rent
...   DEADLINE: <2005-10-01 Sat +1m>
...   :LOGBOOK:
...   - State "DONE"  from "TODO"  [2005-09-01 Thu 16:10]
...   - State "DONE"  from "TODO"  [2005-08-01 Mon 19:44]
...   - State "DONE"  from "TODO"  [2005-07-01 Fri 17:27]
...   :END:
... ''').children[0]
>>> print(node.body)
  :LOGBOOK:
  :END:

Test case (clock):

>>> from orgparse import loads
>>> node = loads('''\
... * TODO Clock
... :LOGBOOK:
... CLOCK: [2022-01-01 Sat 00:00]--[2022-01-01 Sat 01:11] =>  1:11
... :END:
... ''').children[0]
>>> print(node.body)
:LOGBOOK:
:END:
@j3soon j3soon changed the title Logbook Drawer is in body text Logbook drawer tags are not removed from body text Nov 12, 2022
@karlicoss
Copy link
Owner

Happy to accept the fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants