Skip to content

Commit 2b0ca58

Browse files
committed
Revert "fix: String additional empty line from generated README.md"
This reverts commit fb2e233.
1 parent 36712d5 commit 2b0ca58

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/document/generate.go

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"os"
66
"path/filepath"
77
"regexp"
8-
"strings"
98

109
"github.com/norwoodj/helm-docs/pkg/helm"
1110
log "github.com/sirupsen/logrus"
@@ -78,7 +77,6 @@ func applyMarkDownFormat(output bytes.Buffer) bytes.Buffer {
7877

7978
re = regexp.MustCompile(`\n{3,}`)
8079
outputString = re.ReplaceAllString(outputString, "\n\n")
81-
outputString = strings.TrimSuffix(outputString, "\n")
8280

8381
output.Reset()
8482
output.WriteString(outputString)

0 commit comments

Comments
 (0)