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.TrimSuffix(s, "]]")
|
||||||
s = strings.TrimSpace(s)
|
s = strings.TrimSpace(s)
|
||||||
if tag {
|
if tag {
|
||||||
switch s {
|
switch s {
|
||||||
case "TODO":
|
case "TODO":
|
||||||
return fmt.Sprint(`[ ] `)
|
return fmt.Sprint(`[ ] `)
|
||||||
case "DONE":
|
case "DONE":
|
||||||
return fmt.Sprint(`[X] `)
|
return fmt.Sprint(`[X] `)
|
||||||
default:
|
default:
|
||||||
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
|
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
editPart := ""
|
editPart := ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user