Merge pull request #1735 from yuancjun/patch-1

avoid a single space at the end of a line.
This commit is contained in:
John Guo
2022-04-12 21:36:44 +08:00
committed by GitHub

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
}