cobra
cobra copied to clipboard
GenMarkdownCustom adds extra newline when DisableAutoGenTag is true
When running GenMarkdownCustom
with DisableAutoGenTag=true
an extra newline is added to the end of the file. This can be seen in the md file that is output and tools like pre-commit will also attempt to fix the issue
Expected: No extra newline is added when DisableAutoGenTag=true
Cobra version v1.7.0
New line https://github.com/spf13/cobra/blob/v1.7.0/doc/md_docs.go#L108C8