Skip to content

Commit d06b291

Browse files
committed
Don't trim whitespace at beginning of cell code in the REPL
Co-authored-by: Elliott Gordon-Rodriguez <[email protected]> Co-authored-by: matteha <[email protected]> closes #252 closes #280 * jupyter-repl.el (jupyter-repl-execute-cell): Do it.
1 parent 5773717 commit d06b291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter-repl.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ Return the `jupyter-request' representing the executed code."
833833
(save-excursion
834834
(goto-char (jupyter-repl-cell-code-beginning-position))
835835
(run-hooks 'jupyter-repl-cell-pre-send-hook))
836-
(let ((code (string-trim (jupyter-repl-cell-code))))
836+
(let ((code (string-trim (jupyter-repl-cell-code) "[\r\n]+")))
837837
(jupyter-run-with-client client
838838
(jupyter-mlet* ((req (jupyter-execute-request
839839
:code code

0 commit comments

Comments
 (0)