avoid a single space at the end of a line.

This commit is contained in:
yuancjun
2022-04-06 11:57:22 +08:00
committed by GitHub
parent 52d8371ba9
commit 4ca168412b

View File

@ -81,7 +81,8 @@ func (i *HandlerInput) getDefaultBuffer(withColor bool) *bytes.Buffer {
if i.Content != "" {
i.addStringToBuffer(buffer, i.Content)
}
i.addStringToBuffer(buffer, "\n")
// avoid a single space at the end of a line.
buffer.WriteString("\n")
return buffer
}