correct spacing for example + image

Do add an extra space when inserting an example block and an image.
This commit is contained in:
Valentin Boettcher 2022-04-01 10:44:59 +02:00
parent eebeef1293
commit 8a6525a000
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -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.