mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
correct spacing for example + image
Do add an extra space when inserting an example block and an image.
This commit is contained in:
parent
eebeef1293
commit
8a6525a000
1 changed files with 2 additions and 1 deletions
|
@ -1530,7 +1530,8 @@ RESULT is the new result, as an org element, to be inserted.")
|
|||
jupyter-org-strip-last-newline
|
||||
jupyter-org-scalar)
|
||||
result))))
|
||||
(when (/= (point) (line-beginning-position))
|
||||
(when (or (/= (point) (line-beginning-position))
|
||||
(eq (org-element-type context) 'example-block))
|
||||
;; Org objects such as file links do not have a newline added when
|
||||
;; converting to their string representation by
|
||||
;; `org-element-interpret-data' so insert one in these cases.
|
||||
|
|
Loading…
Add table
Reference in a new issue