Do not delete a character that isn't expected

* jupyter-org-client.el (jupyter-org--append-to-example-block): Do it.
This commit is contained in:
Nathaniel Nicandro 2020-04-10 15:49:16 -05:00
parent adcc853183
commit 7d61c82567

View file

@ -1352,7 +1352,8 @@ If KEEP-NEWLINE is non-nil, add a newline before appending
RESULT." RESULT."
;; Delete the newline that will be re-inserted by the call to ;; Delete the newline that will be re-inserted by the call to
;; `org-element-normalize-string'. ;; `org-element-normalize-string'.
(delete-char 1) (when (eq (char-after) ?\n)
(delete-char 1))
(setq result (org-element-normalize-string result)) (setq result (org-element-normalize-string result))
;; From `org-element-example-block-interpreter' ;; From `org-element-example-block-interpreter'
(when (and (not org-src-preserve-indentation) (when (and (not org-src-preserve-indentation)