From c8c6fea0a89d7ce0bcb74ac53681e5cd9ed63e02 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Tue, 17 May 2016 08:29:40 -0400 Subject: Remove large amounts of whitespace at beginning, to save space --- todolist/formatter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'todolist') diff --git a/todolist/formatter.go b/todolist/formatter.go index 5e0f2c0..c884862 100644 --- a/todolist/formatter.go +++ b/todolist/formatter.go @@ -35,7 +35,7 @@ func (f *Formatter) Print() { sort.Strings(keys) for _, key := range keys { - fmt.Fprintf(f.Writer, "\n \t%s\n", cyan(key)) + fmt.Fprintf(f.Writer, "\n %s\n", cyan(key)) for _, todo := range f.GroupedTodos.Groups[key] { f.printTodo(todo) } @@ -45,7 +45,7 @@ func (f *Formatter) Print() { func (f *Formatter) printTodo(todo *Todo) { yellow := color.New(color.FgYellow).SprintFunc() - fmt.Fprintf(f.Writer, " \t%s\t%s\t%s\t%s\t\n", + fmt.Fprintf(f.Writer, " %s\t%s\t%s\t%s\t\n", yellow(strconv.Itoa(todo.Id)), f.formatCompleted(todo.Completed), f.formatDue(todo.Due), -- cgit v1.3