mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
avoid a single space at the end of a line.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user