From f3c8f575b797de482ad881a4c11c6938fc980dc6 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 1 May 2013 09:46:25 -0500 Subject: [PATCH] Changed formatting of the `calendar` command. --- project.properties | 6 +++--- src/main/com/jdblabs/gtd/cli/GTDCLI.groovy | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/project.properties b/project.properties index 90e7322..4324838 100644 --- a/project.properties +++ b/project.properties @@ -1,7 +1,7 @@ -#Wed, 01 May 2013 09:40:28 -0500 +#Wed, 01 May 2013 09:43:41 -0500 lib.local=true name=jdb-gtd -version=0.4 +version=0.5 nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath -build.number=5 +build.number=1 diff --git a/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy b/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy index a676483..7167e78 100644 --- a/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy +++ b/src/main/com/jdblabs/gtd/cli/GTDCLI.groovy @@ -10,7 +10,7 @@ import org.joda.time.DateTime public class GTDCLI { - public static final String VERSION = "0.4" + public static final String VERSION = "0.5" private static String EOL = System.getProperty("line.separator") private static GTDCLI nailgunInst @@ -315,6 +315,7 @@ public class GTDCLI { itemsOnCalendar.each { item -> def itemDay = new DateMidnight(item.date) if (itemDay != currentDate) { + if (currentDate != null) println "" println itemDay.toString("EEE, MM/dd") println "----------" currentDate = itemDay }