improvement: lib's parse() now uses arguments, added newline escape

This commit is contained in:
2025-06-27 20:37:11 +02:00
parent 8a23f451b3
commit 80dbfc0264
3 changed files with 33 additions and 16 deletions

View File

@@ -48,8 +48,8 @@ BEGIN {
}
}
/^END:VEVENT/ && inside { print_data(start, dur, end, summary); exit }
/^DTSTART/ && inside { start = parse() }
/^DTEND/ && inside { end = parse() }
/^DTSTART/ && inside { start = parse_dt(getparam($0), getcontent($0)) }
/^DTEND/ && inside { end = parse_dt(getparam($0), getcontent($0)) }
/^DURATION/ && inside { end = parse_duration($NF); dur = 1 }
/^STATUS/ && inside { status = $NF }
/^[^ ]/ && rs { rs = 0 }