summaryrefslogtreecommitdiff
path: root/tests/test-calendar-sync--event-to-org.el
AgeCommit message (Collapse)Author
3 hoursfix(calendar-sync): sanitize description text to prevent org heading corruptionCraig Jennings
Event descriptions containing lines starting with * were being interpreted as org headings, breaking file structure. Replace leading asterisks with dashes before writing descriptions.
21 hoursfix(calendar-sync): fix heading order, continuation lines, and exception ↵Craig Jennings
text cleaning Three bugs found during manual verification of calendar sync output: 1. Heading/timestamp order reversed in event-to-org — nreverse pattern put timestamp before the org heading. Swap initial list order. 2. get-property continuation line regex broken — the ^ anchor in "^\n[ \t]" prevented matching at the correct position, truncating long DESCRIPTION values at the first ICS line fold. Remove anchor, add explicit position check (matching get-all-property-lines pattern). 3. collect-recurrence-exceptions didn't clean text — exception instances got raw ICS text (literal \n, HTML tags) replacing the cleaned base event text. Wrap summary/description/location in clean-text.
22 hoursfeat(calendar-sync): add event details — attendees, organizer, status, URLCraig Jennings
Add ICS text unescaping (RFC 5545), HTML stripping, and new fields (attendees/status, organizer, meeting URL) to calendar-sync.el. event-to-org now outputs org property drawers. 88 new tests across 10 test files, 146/146 pass. Also fix pre-existing test require order and keymap guard issues.