Skip to content

Commit

Permalink
Fix printer ( CRLF )
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Jun 9, 2020
1 parent 07b13f2 commit 163bb3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ func (p *Printer) PrintErrorMessage(msg string, isColored bool) string {
}

func (p *Printer) removeLeftSideNewLineChar(src string) string {
return strings.TrimLeft(strings.TrimLeft(src, "\r"), "\n")
return strings.TrimLeft(strings.TrimLeft(strings.TrimLeft(src, "\r"), "\n"), "\r\n")
}

func (p *Printer) removeRightSideNewLineChar(src string) string {
return strings.TrimRight(strings.TrimRight(src, "\r"), "\n")
return strings.TrimRight(strings.TrimRight(strings.TrimRight(src, "\r"), "\n"), "\r\n")
}

func (p *Printer) removeRightSideWhiteSpaceChar(src string) string {
Expand Down

0 comments on commit 163bb3c

Please sign in to comment.