Compare commits

...

2 Commits

Author SHA1 Message Date
564081a581 Problem: lists generate with *
All checks were successful
continuous-integration/drone/push Build is passing
Solution: generate lists for -
2022-01-15 16:52:55 +01:00
8af3d22d06 Problem: keywords could not contain a space
Solution: allow space in keywords
2022-01-15 16:52:26 +01:00

View File

@ -741,7 +741,7 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
metaKV, err := regexp.Compile(`(\w+)::\s+(.*)`)
metaKV, err := regexp.Compile(`(\w[ \w]+)::\s+(.*)`)
if err != nil {
log.Fatal(err)
}
@ -842,7 +842,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
for _, line := range lines {
if first {
builder.WriteString(strings.Repeat(" ", item.Indented))
builder.WriteString("* ")
builder.WriteString("- ")
builder.WriteString(line)
builder.WriteByte('\n')
first = false
@ -859,7 +859,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
builder.WriteString(strings.Repeat(" ", item.Indented))
builder.WriteString("* ")
builder.WriteString("- ")
builder.WriteString(item.Text)
builder.WriteByte('\n')
}