impr: externaliezed and two little bug fixes
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
@include "lib/awk/icalendar.awk"
|
||||
|
||||
# formatdate
|
||||
# Generate kind-of-pretty date strings.
|
||||
#
|
||||
# @local variables: ts, ts_y, ts_m, ts_d, delta
|
||||
@@ -86,7 +85,7 @@ BEGINFILE {
|
||||
nextfile
|
||||
}
|
||||
|
||||
/^(CATEGORIES|DESCRIPTION|PRIORITY|STATUS|SUMMARY|COMPLETED|DUE|DTSTART|DURATION|CREATED|DTSTAMP|LAST-MODIFIED)/ {
|
||||
/^(CATEGORIES|PRIORITY|STATUS|SUMMARY|COMPLETED|DUE|DTSTART|DURATION|CREATED|DTSTAMP|LAST-MODIFIED)/ {
|
||||
prop = $1;
|
||||
c[prop] = $0;
|
||||
next;
|
||||
@@ -122,7 +121,6 @@ ENDFILE {
|
||||
# Process content lines
|
||||
# strings
|
||||
cat = singleline(unescape(getcontent(c["CATEGORIES"])))
|
||||
des = singleline(unescape(getcontent(c["DESCRIPTION"])))
|
||||
sta = singleline(unescape(getcontent(c["STATUS"])))
|
||||
sum = singleline(unescape(getcontent(c["SUMMARY"])))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user