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

Refactor code used to insert sections into ClojureDocs buffer #3704

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

katomuso
Copy link
Contributor

@katomuso katomuso commented Jun 5, 2024

I've moved the code used to insert sections into separate functions, as it is easier to modify sections that way. Maybe, in the future, I will also create a generic function to insert sections, so we can reduce boilerplate.

In places where we need to insert an empty line, I've used newline explicitly instead of the previously used additional \n in content insertions. This way, it will be more obvious where we are inserting actual content and where we are inserting just empty lines.

@bbatsov bbatsov merged commit 9c1975e into clojure-emacs:master Jun 5, 2024
39 checks passed
@bbatsov
Copy link
Member

bbatsov commented Jun 5, 2024

Thanks!

@katomuso katomuso deleted the clojuredocs-refactoring branch June 5, 2024 14:28
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 this pull request may close these issues.

2 participants