mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
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:
parent
adcc853183
commit
7d61c82567
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue