mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 17:11:41 -05:00
Merge pull request #488 from dickmao/text-plain
text/plain over text/html
This commit is contained in:
commit
f6bab5c077
2 changed files with 4 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -29,3 +29,4 @@ _static
|
|||
.gitattributes
|
||||
.ecukes-temp*
|
||||
dist
|
||||
*.ob-ein.ipynb
|
|
@ -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