cobra icon indicating copy to clipboard operation
cobra copied to clipboard

GenMarkdownCustom adds extra newline when DisableAutoGenTag is true

Open dramich opened this issue 1 year ago • 0 comments

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

dramich avatar Sep 20 '23 17:09 dramich