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

Design consideration: formatting #4

Open
respatialized opened this issue Jul 17, 2024 · 0 comments
Open

Design consideration: formatting #4

respatialized opened this issue Jul 17, 2024 · 0 comments
Labels
design Needs further design consideration enhancement New feature or request

Comments

@respatialized
Copy link
Contributor

One drawback of working with quoted clojure forms in Adorn right now is the lack of line breaks and spaces. Both of these are discarded by the reader before the form gets processed by Adorn, which results in unwieldy display for large forms. This isn't a problem for strings, because the whitespace gets represented as a rewrite-clj WhitespaceNode when read by rewrite-clj.parser.

This is where a source code formatting tool may be helpful. Both cljfmt and zprint use rewrite-clj internally. Is there a way that I could somehow optionally get a "formatted" Node back from one of those tools before converting it to Hiccup?

@respatialized respatialized added enhancement New feature or request design Needs further design consideration labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Needs further design consideration enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant