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

Multiple newlines are generated during templates processing #74

Closed
dmvolod opened this issue Jul 7, 2022 · 0 comments
Closed

Multiple newlines are generated during templates processing #74

dmvolod opened this issue Jul 7, 2022 · 0 comments

Comments

@dmvolod
Copy link
Contributor

dmvolod commented Jul 7, 2022

There are multiple newlines are generated during templates processing which is known behaviour, i.e.

func (h *Client) IsReleaseInstalled(...) (bool, error)



Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>)


<!-- gomarkdoc:embed:end -->

But multiple empty lines for the .md files are interpreting as a single one.
As we can control the output from the template we could probably add following postprocessing at the end of the template or whole *.md file processing

regexp.MustCompile(`[\r\n]{2,}`).ReplaceAllString(result.String(), "\n\n")
@dmvolod dmvolod changed the title Miltimple multiple newlines are generated during templates processing Multiple newlines are generated during templates processing Jul 7, 2022
@dmvolod dmvolod closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant