Fix double >\n when quoting empty line

This commit is contained in:
Srivathsan Murali 2019-12-10 11:54:53 +01:00 committed by Drew DeVault
parent 0c9f59bad4
commit b2dc624dbf
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ func quote(text string) string {
for _, line := range lines { for _, line := range lines {
if line == "" { if line == "" {
quoted.WriteString(">\n") quoted.WriteString(">\n")
continue
} }
quoted.WriteString("> ") quoted.WriteString("> ")
quoted.WriteString(line) quoted.WriteString(line)