summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorSrivathsan Murali <sri@vathsan.com>2019-12-10 11:54:53 +0100
committerDrew DeVault <sir@cmpwn.com>2020-01-04 12:23:02 -0500
commitb2dc624dbff6b9028ee7ab883f817166a610c9e3 (patch)
tree783a30dd5cce35ab903b9f336f664f2978f80a13 /lib
parent0c9f59bad49d5b7073efd1acd7c0299a02b25509 (diff)
downloadaerc-b2dc624dbff6b9028ee7ab883f817166a610c9e3.tar.gz
Fix double >\n when quoting empty line
Diffstat (limited to 'lib')
-rw-r--r--lib/templates/template.go1
1 files changed, 1 insertions, 0 deletions
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)