From 0a607f5eefec38cc7ef625f1692bd1d12e969f90 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 16 Aug 2007 12:03:57 +0000 Subject: 23764: allow hidden continuations in calendar entries allow UIDs to help with updates --- Functions/Calendar/calendar | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Functions/Calendar/calendar') diff --git a/Functions/Calendar/calendar b/Functions/Calendar/calendar index 328da853c..b5df2ca72 100644 --- a/Functions/Calendar/calendar +++ b/Functions/Calendar/calendar @@ -293,6 +293,13 @@ fi showline=${line%%$'\n'*} else showline=$line + match=() + # Strip continuation lines starting " #". + while [[ $showline = (#b)(*$'\n')[[:space:]]##\#[^$'\n']##(|$'\n'(*)) ]]; do + showline="$match[1]$match[3]" + done + # Strip trailing empty lines + showline=${showline%%[[:space:]]#} fi if (( showall || (t >= start && (remaining || t <= stop || icount < showcount)) )) then -- cgit v1.2.3