-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Parsing of logged time in :LOGBOOK: drawers with comments fails #111
Comments
@jamesnvc Since you've build the initial version of clocking time and hence might be interested, I'm pinging you here. Of course, there's neither obligation to work on this or even answer to this message. If you're not interested, please just ignore the notification and be sure that I'm sorry about cluttering your inbox(; |
Oh yes, I ran in to that on some of my own data; I'm happy to work on a fix |
Would removing the "invalid" data be acceptable? |
There’s nothing invalid about the data so please do not remove anything? :) |
Generally speaking, I'd say that parsing without crashing is good. However, for this specific case, I'd have the following two arguments:
Imo the best approach here would be a very aggressive regexp to check every line on whether or not it's a clock entry. If it's not, it can be saved and re-exported verbatim. As a bonus, this other clocking related parser issue (#110) would also be solved(;
This is great news. Thanks for jumping into the discussion less than half an hour after a ping. There's an amazing community forming here. I'm stoked. Thank you everyone! 🙏 🙇 |
Clocking time within organice and saving it in a
:LOGBOOK:
drawer is a new feature (See #103).It works fine, unless the clocked time is intervoven with comments in which case the parser crashes here.
According to the Emacs documentation, "can contain anything but a headline and another drawer", though.
A first test case (added to logbook.org) for this could be:
The text was updated successfully, but these errors were encountered: