aboutsummaryrefslogtreecommitdiffstats
path: root/todolist
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-05-17 08:29:40 -0400
committerGrant Ammons <gammons@gmail.com>2016-05-17 08:29:40 -0400
commitc8c6fea0a89d7ce0bcb74ac53681e5cd9ed63e02 (patch)
treeea2165c944074d9c666c6f3acaae5190aaec9d3d /todolist
parent0e31c2a0b9a169b0a98ec389859c94f1048b415f (diff)
Remove large amounts of whitespace at beginning, to save space
Diffstat (limited to 'todolist')
-rw-r--r--todolist/formatter.go4
1 files changed, 2 insertions, 2 deletions
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),