mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
: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:
parent
04c4dc5f17
commit
7985387178
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue