Merge pull request #488 from dickmao/text-plain

text/plain over text/html
This commit is contained in:
John Miller 2019-03-15 10:46:03 -05:00 committed by GitHub
commit f6bab5c077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -29,3 +29,4 @@ _static
.gitattributes
.ecukes-temp*
dist
*.ob-ein.ipynb

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