Compare commits
2 Commits
965d2c87f5
...
564081a581
Author | SHA1 | Date | |
---|---|---|---|
564081a581 | |||
8af3d22d06 |
6
main.go
6
main.go
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user