fix: Remove empty whitespace before prefix and CR
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
f513a8d130
commit
25059c6abf
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -6,6 +6,7 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"github.com/bbrks/wrap"
|
||||
|
@ -107,6 +108,9 @@ func BackUpSource(filepath string) {
|
|||
body = " " + body
|
||||
}
|
||||
|
||||
body = strings.Replace(body, "\r", "", -1)
|
||||
body = strings.Replace(body, " ** \n", " **\n", -1)
|
||||
|
||||
fmt.Fprintf(outputFile, "/**%s **/\n", body)
|
||||
nextComment++
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue