Fork me on GitHub

I spotted something strange with Cursive's REPL. I was having issues with some string formatting code I was writing and while debugging I found the cause was that when I eval " a \n b " it appears to trim the whitespace after the newline on the returned string to " a \nb ". This is the case whether a function returns that value or just the string is eval-ed but println-ing works fine (see screenshot). A colleague also reported seeing the same thing. Is there a flag we have checked that's causing this? I've looked through my settings and tried searching for it on the Cursive site but can't find anything.


I should add a section to the Troubleshooting page about this, sorry, that’s Preferences | Languages &amp; Frameworks | Clojure | REPL Options | Split and align multi-line strings


No problem, I obviously didn't look close enough 😅 Thank you for getting back to me so quickly!


No worries! That’s so that when you print out data structures containing formatted strings, they look nice. That’s useful, but for the case where you’re actually developing code that depends on formatted strings, it can be weird.


I’ve updated the doc for this, it’ll go out on the next push.

👍 1