mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Prevent leaking ANSI sequences when inserting text/plain results
* jupyter-mime.el (jupyter-insert): Do it.
This commit is contained in:
parent
2e8689227f
commit
3736ae753a
1 changed files with 3 additions and 0 deletions
|
@ -549,6 +549,9 @@ width and height of the image."
|
|||
|
||||
(cl-defmethod jupyter-insert ((_mime (eql :text/plain)) data
|
||||
&optional _metadata)
|
||||
;; Reset the context so that it doesn't leak into DATA if DATA has
|
||||
;; no ANSI sequences.
|
||||
(setq ansi-color-context nil)
|
||||
(jupyter-insert-ansi-coded-text data)
|
||||
(insert "\n"))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue