Преглед на файлове

Fixed a bug where descriptions renderd without newlines

arianagiroux преди 2 седмици
родител
ревизия
f9439a38e9
променени са 4 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 2 5
      io.go
  2. 0 1
      issues/bug: description render issues/description
  3. 0 1
      issues/bug: description render issues/status
  4. 0 0
      issues/bug: description render issues/tags/v0.1

+ 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