From 1b8b5ff4f6a4d3a9389e8493aeae6a62d206aea0 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Mon, 17 Jan 2022 00:16:41 +0100 Subject: [PATCH] Problem: checkbox part of file is not indented Solution: fix indentation --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index b8b9aea..e812b95 100644 --- a/main.go +++ b/main.go @@ -938,14 +938,14 @@ func renderLinks(pageText string, edit bool) string { s = strings.TrimSuffix(s, "]]") s = strings.TrimSpace(s) if tag { - switch s { - case "TODO": - return fmt.Sprint(`[ ] `) - case "DONE": - return fmt.Sprint(`[X] `) - default: - return fmt.Sprintf(`%s`, cleanNameURL(s), s) - } + switch s { + case "TODO": + return fmt.Sprint(`[ ] `) + case "DONE": + return fmt.Sprint(`[X] `) + default: + return fmt.Sprintf(`%s`, cleanNameURL(s), s) + } } editPart := ""