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

fix: Parser does not swallow property values #578

Merged
merged 3 commits into from
Nov 20, 2020

Conversation

munen
Copy link
Collaborator

@munen munen commented Nov 20, 2020

organice understands :PROPERTIES: drawers and smartly parses the values in case one of the values is a timestamp. However, parsing all the values and saving the parsed result in any case will lead to wrong results. Most values of properties are just plain text and non-interactive things in Org mode.

Hence, before this fix, we'd have problems like:

image

Because organice believed this to be text with _ which yields underlined text.

@@ -102,7 +105,7 @@ qui dolorem eum fugiat quo voluptas nulla pariatur?"
CLOCK: [2019-11-11 Mon 13:12]--[2019-11-12 Tue 13:12] => 24:00
CLOCK: [2019-10-13 Sun 12:15]--[2019-10-13 Sun 14:12] => 1:57
:END:
** A messy headline with trailing whitespace
** A messy headline with trailing whitespace
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups, did you remove the trailing whitespace here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, Emacs did(;

Thanks for the quick review. I'll revert this of course.

Haven't read through the diff, yet. Only fixed the issue at hand. I would have hoped to also catch it, but you were blazingly fast. Thanks a bunch 🙏

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, I'm faster than all tests :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really impressive! 🚀 :godmode:

@munen
Copy link
Collaborator Author

munen commented Nov 20, 2020

Btw, to all the readers: Sorry I'm doing this PR before reviewing/commenting on others.

I'm still working like mad on our new product, which is live now, but the customer has daily new change requests that need to be deployed asap^^ And this bug actually tripped me up in our companies project management Org file, so I needed to fix it quickly.

@munen munen merged commit 8bf0860 into master Nov 20, 2020
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

Successfully merging this pull request may close these issues.

2 participants