mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
Merge pull request #1735 from yuancjun/patch-1
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