karlicoss / orgparse

Python module for reading Emacs org-mode files
https://orgparse.readthedocs.org
BSD 2-Clause "Simplified" License
371 stars 43 forks source link

Added __str__() to OrgDate #44

Closed tbruckmaier closed 2 years ago

tbruckmaier commented 3 years ago

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

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!

karlicoss commented 2 years ago

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: https://github.com/karlicoss/orgparse/issues/11 https://github.com/karlicoss/orgparse/issues/12