From: Sergey Matveev Date: Thu, 20 Feb 2025 14:23:39 +0000 (+0300) Subject: Fix disappearing content X-Git-Tag: v0.36.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=sgblog.git Fix disappearing content --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index b398716..837320b 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -739,8 +739,8 @@ func serveHTTP() { commentsParsed := sgblog.ParseComments(commentsRaw) comments := make([]CommentEntry, 0, len(commentsParsed)) for _, comment := range commentsParsed { - lines = strings.Split(comment, "\n") - comments = append(comments, CommentEntry{lines[:3], lines[3:]}) + commentLines := strings.Split(comment, "\n") + comments = append(comments, CommentEntry{commentLines[:3], commentLines[3:]}) } var notesLines []string if len(notesRaw) > 0 { diff --git a/common.go b/common.go index 67675a3..ae0961e 100644 --- a/common.go +++ b/common.go @@ -30,7 +30,7 @@ import ( ) const ( - Version = "0.35.0" + Version = "0.36.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )