Skip to content

Commit

Permalink
Don't print a spurious newline after an exception.
Browse files Browse the repository at this point in the history
Output was originally:

  user=> (/ 1 0)
  #<ArithmeticException java.lang.ArithmeticException: Divide by zero>

  user=>
  • Loading branch information
ivan committed Jun 27, 2014
1 parent a7fab0f commit c5f2111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/reply/eval_modes/standalone.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
;lazyseq: (1 2 3 4 5 ...)
;pr: "(1 2 3 4 5 ...)"
(when (not= failure-sentinel result)
(print-value result))
(when (:interactive options) (println))
(print-value result)
(when (:interactive options) (println)))
(eval-state/get-ns-string)))

(defn run-repl [{:keys [prompt subsequent-prompt history-file
Expand Down

0 comments on commit c5f2111

Please sign in to comment.