We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7717a24 commit fb2e233Copy full SHA for fb2e233
pkg/document/generate.go
@@ -5,6 +5,7 @@ import (
5
"os"
6
"path/filepath"
7
"regexp"
8
+ "strings"
9
10
"github.com/norwoodj/helm-docs/pkg/helm"
11
log "github.com/sirupsen/logrus"
@@ -77,6 +78,7 @@ func applyMarkDownFormat(output bytes.Buffer) bytes.Buffer {
77
78
79
re = regexp.MustCompile(`\n{3,}`)
80
outputString = re.ReplaceAllString(outputString, "\n\n")
81
+ outputString = strings.TrimSuffix(outputString, "\n")
82
83
output.Reset()
84
output.WriteString(outputString)
0 commit comments