-
Notifications
You must be signed in to change notification settings - Fork 49
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
Zprints escapes already escaped newlines #326
Comments
This is a very interesting question indeed. You might think it had a simple answer, and it might, but I sure haven't found it yet despite a considerable time spent working on it. Until I know for sure exactly what is going on, I can't say for sure, but it seems like the output you want should be at least optionally available. More to come... |
This will be possible, but unfortunately it will have to wait until the next release. This was really quite the challenge, but in retrospect it seems straightforward. When parsing Clojure source, In order to do what you want, I have created a new style called It required a small change to the spec for option maps, or I could give you an option-fn that does it in the current release. I'm sorry you will have to wait a bit, but at least it will work soon. |
Awesome! I can wait no worries. I've got a rudimentary workaround now with a string/replace I run as a post-process step. But I'll be happy to switch to the first class support. Thanks for looking into it! And love zprint by the way, amazing library and great addition to Clojure. |
I am calling the following zprint function:
The issue is the docstring is escaped again by zprint, so it ends up printing in one line, instead of multiline as you see we got:
If I wrap the call in
with-out-str
I can see it double escaping:Is there a way to fix this?
The text was updated successfully, but these errors were encountered: