From 7985387178509128b58a50cbbcf50e582c457be8 Mon Sep 17 00:00:00 2001 From: dickmao Date: Mon, 11 Mar 2019 00:02:08 -0400 Subject: [PATCH] :text/plain is also :text Notebooks with :text/plain and :text/html outputs opt for :text/html which looks bad in emacs. There is already code to prefer :text over :text/html, so it should prefer :text/plain as well. --- lisp/ein-cell.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ein-cell.el b/lisp/ein-cell.el index 49aea38..df94607 100644 --- a/lisp/ein-cell.el +++ b/lisp/ein-cell.el @@ -976,7 +976,9 @@ HTML for other object. If the text type output contains a newline, it is assumed be a prettified text thus be used instead of HTML type." - (if (ein:aand (plist-get data :text) (string-match-p "\n" it)) + (if (ein:aand (or (plist-get data :text) + (plist-get data :text/plain)) + (string-match-p "\n" it)) ein:output-types-text-preferred ein:output-types-html-preferred))