Skip to content

Commit

Permalink
Fixed new line bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 6, 2021
1 parent cd65d2d commit 64c773c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/root_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (a *Action) renderToOutput() {
cobra.CheckErr(err)
}

_, err = fmt.Fprintln(inputTableOutput, inputAutoDocEnd)
_, err = fmt.Fprint(inputTableOutput, inputAutoDocEnd)
if err != nil {
cobra.CheckErr(err)
}
Expand Down Expand Up @@ -109,7 +109,7 @@ func (a *Action) renderToOutput() {
cobra.CheckErr(err)
}

_, err = fmt.Fprintln(outputTableOutput, outputAutoDocEnd)
_, err = fmt.Fprint(outputTableOutput, outputAutoDocEnd)
if err != nil {
cobra.CheckErr(err)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/root_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (a *Action) renderToOutput() {
cobra.CheckErr(err)
}

_, err = fmt.Fprint(inputTableOutput, fmt.Sprintf("%s\r\n", inputAutoDocEnd))
_, err = fmt.Fprint(inputTableOutput, inputAutoDocEnd)
if err != nil {
cobra.CheckErr(err)
}
Expand Down Expand Up @@ -107,7 +107,7 @@ func (a *Action) renderToOutput() {
cobra.CheckErr(err)
}

_, err = fmt.Fprint(outputTableOutput, fmt.Sprintf("%s\r\n", outputAutoDocEnd))
_, err = fmt.Fprint(outputTableOutput, outputAutoDocEnd)
if err != nil {
cobra.CheckErr(err)
}
Expand Down

0 comments on commit 64c773c

Please sign in to comment.