Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenMarkdownCustom adds extra newline when DisableAutoGenTag is true #2029

Open
dramich opened this issue Sep 20, 2023 · 0 comments · May be fixed by #2030
Open

GenMarkdownCustom adds extra newline when DisableAutoGenTag is true #2029

dramich opened this issue Sep 20, 2023 · 0 comments · May be fixed by #2030

Comments

@dramich
Copy link

dramich commented Sep 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant