X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=cmd%2Fsgblog%2Fhttp.go;h=85359b3162cab61b643e9741945d475dfff8aeb2;hb=d69e0371154b4466d875b38805caff1c3bb497c2;hp=1c09ae0b5677771411154b5247e583e9eb5a8578;hpb=cfe593c6615455c961f85a947b257f7c27553f6c;p=sgblog.git diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index 1c09ae0..85359b3 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -642,7 +642,11 @@ func serveHTTP() { } out.Write([]byte("\n
\n")) if len(notesRaw) > 0 { - out.Write([]byte("Note:
\n" + string(notesRaw) + "\n
\n
\n")) + out.Write([]byte("Note:
\n"))
+			for _, line := range strings.Split(string(notesRaw), "\n") {
+				out.Write([]byte(lineURLize(cfg.URLPrefix, line) + "\n"))
+			}
+			out.Write([]byte("
\n
\n")) } if cfg.CommentsEmail != "" { out.Write([]byte("[" + makeA(