-
Notifications
You must be signed in to change notification settings - Fork 47
docstrings of java-time.api contain literal \n #111
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
Comments
I looked at clojure.java-time/test/java_time/dev/gen.clj Lines 193 to 217 in cd06539
(deftype DocString [value])
(defmethod print-method DocString
[^DocString this ^Writer w]
(.write w (str "\"" (.-value this) "\""))) With this, the following code (modelled after (with-bindings {#'*print-meta* true}
(println (pr-str (with-meta {:value "X"} {:doc (DocString. "multi\nline\nstring")})))) prints:
|
Could you submit a PR we can collaborate on please? |
devurandom
added a commit
to devurandom/clojure.java-time
that referenced
this issue
Aug 2, 2024
devurandom
added a commit
to devurandom/clojure.java-time
that referenced
this issue
Aug 2, 2024
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docstrings in
java-time.api
contain literal\n
instead of newlines, which makes them hard to read in code. Cursive does not display them nicely either, but shows the documentation with the literal\n
.The text was updated successfully, but these errors were encountered: