: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.
This commit is contained in:
dickmao 2019-03-11 00:02:08 -04:00
parent 04c4dc5f17
commit 7985387178

View file

@ -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))