Open velios opened 2 days ago
Hi, just watched your conj talk, this is cool - your efforts are appreciated.
Thank you! :grin:
I tested this as input and the formatter returned it unchanged (which is correct behavior):
(cond
some-condition
12
another-condition
13
:else
nil)
Can share the file exactly? What version of Standard Clojure Style are you using?
Another hunch: are you on Windows and does this file use CRLF line endings? The formatter should be able to handle that, but there was another bug that looked similar to this and I wonder if this is somehow related (Issue #102 and Issue #103).
Of course, my fault. Example https://github.com/velios/standart-clojure-style-issue
I'm on mac, compile my-standart-clj-binary to standalone binary like you show on video from 8a0588c19325033c63ead2e1acb40a606717dc6a
Thank you sharing that!
Adding this here for my debugging efforts. I do see a difference between with_spaces.clj
and without_spaces.clj
when viewing with a hex editor.
Hi, just watched your conj talk, this is cool - your efforts are appreciated.
Came across two different cases in different editors Pic instead code block because it shows blankspaces.
In first case, which by default in my vscode setup
will be formatted to
but(which default in my cursive setup)
will be formatted with respect to blank lines to
I would personally prefer to respect empty lines, but I wonder which behavior is considered preferable and whether the formatter behaves correctly in both cases?