File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,16 @@ It requires a REPL PROC for inspecting the correct type."
215
215
(setq inf-clojure-repl-type (inf-clojure--detect-repl-type proc))
216
216
inf-clojure-repl-type))
217
217
218
+ (defun inf-clojure--single-linify (string )
219
+ " Convert a multi-line STRING in a single-line STRING."
220
+ (replace-regexp-in-string " [[:space:]\\ |\n ]+" " " string))
221
+
218
222
(defun inf-clojure--sanitize-command (command )
219
223
" Sanitize COMMAND for sending it to a process.
220
224
An example of things that this function does is to add a final
221
225
newline at the end of the form."
222
- (concat (string-trim-right command) " \n " ))
226
+ (concat (string-trim-right (inf-clojure--single-linify command))
227
+ " \n " ))
223
228
224
229
(defun inf-clojure--send-string (proc string )
225
230
" A custom `comint-input-sender` / `comint-send-string`.
You can’t perform that action at this time.
0 commit comments