about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-09-05 08:34:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-09-05 08:34:27 +0000
commit8cfe028631f509b2a9ecb8dddc2ab435dd6e5b59 (patch)
tree8e34909fc1e21779c09e84a56e4b7e2d140fb37d /Functions
parente85760e05e90b062a3695f66ba5747dee02c3444 (diff)
downloadzsh-8cfe028631f509b2a9ecb8dddc2ab435dd6e5b59.tar.gz
zsh-8cfe028631f509b2a9ecb8dddc2ab435dd6e5b59.tar.xz
zsh-8cfe028631f509b2a9ecb8dddc2ab435dd6e5b59.zip
unposted: fix recurring calendar event format in calendar
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Calendar/calendar3
1 files changed, 3 insertions, 0 deletions
diff --git a/Functions/Calendar/calendar b/Functions/Calendar/calendar
index b5df2ca72..7dec84e28 100644
--- a/Functions/Calendar/calendar
+++ b/Functions/Calendar/calendar
@@ -317,6 +317,9 @@ fi
       if (( shown && repeating )); then
 	# Done and dusted, but a repeated event is due.
 	strftime -s newdate $datefmt $repeattime
+	if [[ $newdate != *[[:space:]] && $restline != [[:space:]]* ]]; then
+	  newdate+=" "
+	fi
 	calendar_addlines+=("$newdate$restline")
 
 	# We'll add this back in below, but we check in case the