Skip to content

Commit

Permalink
Revert "fix: String additional empty line from generated README.md"
Browse files Browse the repository at this point in the history
This reverts commit fb2e233.
  • Loading branch information
Nepo26 committed Sep 10, 2023
1 parent 36712d5 commit 2b0ca58
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/document/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"path/filepath"
"regexp"
"strings"

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

re = regexp.MustCompile(`\n{3,}`)
outputString = re.ReplaceAllString(outputString, "\n\n")
outputString = strings.TrimSuffix(outputString, "\n")

output.Reset()
output.WriteString(outputString)
Expand Down

0 comments on commit 2b0ca58

Please sign in to comment.