Replies: 2 comments 1 reply
-
Good question, for which I think I have a good answer. The example you gave didn't have balanced parentheses, and since
I hope that is what you wanted. If not, please be sure and let me know. Just recently someone I'm working with wanted more blank lines between forms in a list. Which was a new one for me, but to enable some more complex things I added a basic capability to do this quite recently in Try this...
I don't know exactly what you want to have happen in more complex examples, so give this a try in some realistic situations and see if it does what you want. If not, please let me know and we'll see what we can figure out. Actually, I would like to hear if it does what you want too! Thanks for asking. Lots of people get frustrated and don't bother to ask, which is too bad, since as hard as I've worked on the documentation, it is still pretty dense and there is a lot of it. |
Beta Was this translation helpful? Give feedback.
-
Apologies if:
I've tried looking around but am perhaps using the wrong keywords, and I've not seen any comparable features besides
:respect-bl?
for lists. Closest might be:fn-map { "fn-name" [:arg1 {:list {:respect-bl? true}}]}
, but the following may illustrate my confusion:For the following form:
I'd like it to do the following:
That is, a forced new blankline before each
testing
form. As an alternative,:respect
ing existingbl
s would be be nice. Just so long as other erroneous or non-testing
bl
s are formatting normally as configured (eg removed if desired).I think
:fn-map { "testing" [:arg1 {:list {:respect-bl? true}}]}
would only:respect
new lines, not addtesting
anywaysSimilarly, doing the above but for
deftest
instead oftesting
, would (only)respect
blank lines and would also do that for all descendents, not justtesting
(eg thelet
above wrapping thetesting
s).Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions