Selaa lähdekoodia

Fixed a bug where descriptions renderd without newlines

arianagiroux 2 viikkoa sitten
vanhempi
sitoutus
f9439a38e9

+ 2 - 5
io.go

@@ -81,11 +81,8 @@ func ReadTemplate(path string) (lines []string, err error) {
 	slines := strings.SplitSeq(sdata, "\n")
 
 	for line := range slines {
-		if len(string(line)) > 0 {
-			if string(line[0]) != "#" {
-				lines = append(lines, line)
-			}
-		} else {
+		line = line + "\n"
+		if string(line[0]) != "#" {
 			lines = append(lines, line)
 		}
 	}

+ 0 - 1
issues/bug: description render issues/description

@@ -1 +0,0 @@
-Descriptions have some broken behaviour on renderFor example, as of 1d89d38, the recommended blank second line doesn'tget displayed with a newline.

+ 0 - 1
issues/bug: description render issues/status

@@ -1 +0,0 @@
-open

+ 0 - 0
issues/bug: description render issues/tags/v0.1