I'd like BC to automatically and consistently align BEGIN/END blocks in .ics (calendar) files. You can see the problem in the attached screenshot which shows (in a confusing way) that the middle BEGIN/END block in the left file was deleted and not present in the right file.
I played for hours with grammar rules and weights but I couldn't make it align line 9 in the right file with line 12 in the left file and then have the difference section in the left file be lines 13-27.
Is it possible? If not I'd like to request a way to tell BC to do this. Maybe the problem is similar to the forum topic "Brace matching in C#" http://www.scootersoftware.com/vbull...ead.php?t=4209
Left file:
Right file:
I played for hours with grammar rules and weights but I couldn't make it align line 9 in the right file with line 12 in the left file and then have the difference section in the left file be lines 13-27.
Is it possible? If not I'd like to request a way to tell BC to do this. Maybe the problem is similar to the forum topic "Brace matching in C#" http://www.scootersoftware.com/vbull...ead.php?t=4209
Left file:
Code:
BEGIN:VTODO CREATED:20101216T191515Z LAST-MODIFIED:20101220T134027Z DTSTAMP:20101220T134027Z UID:9bd6a96c-88a0-4299-b707-2ceece81fbc5 SUMMARY:Recurring RRULE:FREQ=DAILY DTSTART;TZID=America/New_York:20101216T235900 DUE;TZID=America/New_York:20101216T235900 X-MOZ-GENERATION:8 SEQUENCE:2 END:VTODO BEGIN:VTODO CREATED:20101220T134016Z LAST-MODIFIED:20101220T134027Z DTSTAMP:20101220T134027Z UID:9bd6a96c-88a0-4299-b707-2ceece81fbc5 SUMMARY:Recurring STATUS:COMPLETED RECURRENCE-ID;TZID=America/New_York:20101220T235900 DTSTART;TZID=America/New_York:20101220T235900 DUE;TZID=America/New_York:20101220T235900 COMPLETED:20101220T134027Z PERCENT-COMPLETE:100 SEQUENCE:3 X-MOZ-GENERATION:8 END:VTODO BEGIN:VTODO CREATED:20101217T174900Z LAST-MODIFIED:20101220T150223Z DTSTAMP:20101220T150223Z UID:830f283d-ee02-4acd-8e94-157a3c884acd SUMMARY:garbage RRULE:FREQ=WEEKLY DTSTART;TZID=America/New_York:20101220T235900 DUE;TZID=America/New_York:20101220T235900 SEQUENCE:2 X-MOZ-GENERATION:4 END:VTODO
Code:
BEGIN:VTODO EXDATE:20101218T120000Z EXDATE:20101219T120000Z EXDATE:20101220T120000Z DTSTART;TZID=America/New_York:20101216T235900 DUE;TZID=America/New_York:20101216T235900 X-MOZ-GENERATION:8 SEQUENCE:2 END:VTODO BEGIN:VTODO CREATED:20101217T174900Z LAST-MODIFIED:20101220T150223Z DTSTAMP:20101220T150223Z UID:830f283d-ee02-4acd-8e94-157a3c884acd SUMMARY:garbage RRULE:FREQ=WEEKLY DTSTART;TZID=America/New_York:20101220T235900 DUE;TZID=America/New_York:20101220T235900 SEQUENCE:2 X-MOZ-GENERATION:4 END:VTODO
Comment