Skip to content

Emit newlines instead of \n in docstrings #113

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

Merged
merged 4 commits into from
Nov 16, 2024

Conversation

devurandom
Copy link
Contributor

Closes: #111

Comment on lines +68 to +70
forwarded-meta (not-empty (into (sorted-map) (select-keys m [:doc :deprecated])))]
(list* 'defmacro (with-meta n forwarded-meta)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was necessary, because defmacro docstrings were still printed the old way (with \n). With this change, they undergo the same DocString treatment as defn and ns.

@devurandom devurandom marked this pull request as ready for review August 2, 2024 10:00
@frenchy64
Copy link
Collaborator

This looks great. Do you know if we can combine this with pprinting the rest of the forms?

@devurandom
Copy link
Contributor Author

This looks great. Do you know if we can combine this with pprinting the rest of the forms?

How do you mean? Which forms should be pretty printed?

@frenchy64 frenchy64 merged commit 3c8ebe4 into dm3:master Nov 16, 2024
7 checks passed
@devurandom devurandom deleted the ds/issue-111 branch November 16, 2024 08:08
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.

docstrings of java-time.api contain literal \n
2 participants