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

Added __str__() to OrgDate #44

Merged
merged 2 commits into from
Oct 31, 2021
Merged

Added __str__() to OrgDate #44

merged 2 commits into from
Oct 31, 2021

Conversation

tbruckmaier
Copy link
Contributor

Added support to convert OrgDate and its descendants into strings, using the default org formats

  • use "<>" or "[]" depending on the active flag
  • support for ranges (use short format <2021-09-03 Fri 16:01--17:02> by default if on the same day, but not for OrgClockDate)

This pull request will probably conflict with #43, as I have put the necessary tests into the same new file, but I wanted to keep the PRs separate. Solving the merge conflict should be straightforward though!

tbruckmaier and others added 2 commits September 3, 2021 17:19
When converting OrgDate (or its descendants) to a string, use the
correct org format (considering active status, ranges)
@karlicoss karlicoss merged commit 620ea35 into karlicoss:master Oct 31, 2021
@karlicoss
Copy link
Owner

thanks (and especially for adding a test :) )

I guess my only worry is that I'm not sure if generating org-mode ultimately should be the responsibility of orgparse (it's pretty tricky and could get out of hand). But I guess I don't mind for now if it's all stable and covered with tests :)

related issues: #11 #12

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