Skip to content

Commit 2769bf1

Browse files
vale981nnicandro
authored andcommitted
correct spacing for example + image
Do add an extra space when inserting an example block and an image.
1 parent 053a78d commit 2769bf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter-org-client.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,8 @@ RESULT is the new result, as an org element, to be inserted.")
15301530
jupyter-org-strip-last-newline
15311531
jupyter-org-scalar)
15321532
result))))
1533-
(when (/= (point) (line-beginning-position))
1533+
(when (or (/= (point) (line-beginning-position))
1534+
(eq (org-element-type context) 'example-block))
15341535
;; Org objects such as file links do not have a newline added when
15351536
;; converting to their string representation by
15361537
;; `org-element-interpret-data' so insert one in these cases.

0 commit comments

Comments
 (0)