Problem: checkbox part of file is not indented
Some checks failed
continuous-integration/drone/push Build is failing

Solution: fix indentation
This commit is contained in:
Peter Stuifzand 2022-01-17 00:16:41 +01:00
parent f6566f6313
commit 1b8b5ff4f6

16
main.go
View File

@ -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(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
}
switch s {
case "TODO":
return fmt.Sprint(`[ ] `)
case "DONE":
return fmt.Sprint(`[X] `)
default:
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
}
}
editPart := ""