mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Merge remote-tracking branch 'origin/master' into index-polymode
This commit is contained in:
commit
91a9404748
1 changed files with 4 additions and 1 deletions
|
@ -1038,12 +1038,14 @@ prettified text thus be used instead of HTML type."
|
|||
(ein:log 'debug "SAVE-NOTEBOOK: Skipping unnecessary :text data."))
|
||||
|
||||
((and (equal otype "execute_result")
|
||||
(equal prop :text))
|
||||
(or (equal prop :text)
|
||||
(equal prop :html)))
|
||||
(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)
|
||||
(push :data new-output)))
|
||||
|
||||
|
||||
((and (equal otype "execute_result")
|
||||
(equal prop :prompt_number))
|
||||
(ein:log 'debug "SAVE-NOTEBOOK: Fixing prompt_number property.")
|
||||
|
@ -1061,6 +1063,7 @@ prettified text thus be used instead of HTML type."
|
|||
(outputs . ,(apply #'vector (or renamed-outputs outputs)))
|
||||
(metadata . ,metadata))))
|
||||
|
||||
|
||||
(defmethod ein:cell-to-json ((cell ein:textcell) &optional discard-output)
|
||||
`((cell_type . ,(oref cell :cell-type))
|
||||
(source . ,(ein:cell-get-text cell))))
|
||||
|
|
Loading…
Add table
Reference in a new issue