Fix double >\n when quoting empty line
This commit is contained in:
parent
0c9f59bad4
commit
b2dc624dbf
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue