Problem: checkbox part of file is not indented
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Solution: fix indentation
This commit is contained in:
parent
f6566f6313
commit
1b8b5ff4f6
16
main.go
16
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(`<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 := ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user