Skip to content

Commit

Permalink
avoid a single space at the end of a line.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuancjun authored Apr 6, 2022
1 parent 52d8371 commit 4ca1684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion os/glog/glog_logger_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4ca1684

Please sign in to comment.