From b2dc624dbff6b9028ee7ab883f817166a610c9e3 Mon Sep 17 00:00:00 2001 From: Srivathsan Murali Date: Tue, 10 Dec 2019 11:54:53 +0100 Subject: Fix double >\n when quoting empty line --- lib/templates/template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/templates/template.go b/lib/templates/template.go index a2f35e2..21f7b35 100644 --- a/lib/templates/template.go +++ b/lib/templates/template.go @@ -116,6 +116,7 @@ func quote(text string) string { for _, line := range lines { if line == "" { quoted.WriteString(">\n") + continue } quoted.WriteString("> ") quoted.WriteString(line) -- cgit v1.2.3