Fix potential issues saving Latex Output

Sometimes ein will not save latex output properly. This is an attempt to
avoid that situation.

Also some updates to gitignore.
This commit is contained in:
John Miller 2015-06-30 16:25:50 -05:00
parent f3a7c61df3
commit 710ccaace2
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View file

@ -14,3 +14,5 @@ tests/test-batch-log.log
lisp/test-batch-log.log
*.pyc
test-batch-log.log
*.ipynb~
Makefile~

View file

@ -1057,7 +1057,8 @@ prettified text thus be used instead of HTML type."
((and (equal otype "execute_result")
(or (equal prop :text)
(equal prop :html)))
(equal prop :html)
(equal prop :latex)))
(ein:log 'debug "Fixing execute_result (%s?)." otype)
(let ((new-prop (cdr (ein:output-property-p prop))))
(push (list new-prop (list value)) new-output)