Skip to content

Commit 38dbe4e

Browse files
author
George Moutsopoulos
committed
unknown
1 parent d726adf commit 38dbe4e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

org-annotate-code.el

+7-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@
6363
(defun org-annotate-code-add-heading0 (annotation)
6464
(if org-annotate-code-heading0 (cons (list :heading org-annotate-code-heading0) annotation) annotation))
6565

66+
(defun org-annotate-code-wrap-id (id)
67+
"Wrap ID with brackets or not."
68+
(org-link-make-string id))
69+
6670
(defun org-annotate-code-make-file-link (filename &optional search)
67-
(if search
68-
(org-link-make-string (concat "file:" filename "::" search))
69-
(org-link-make-string (concat "file:" filename))))
71+
(org-annotate-code-wrap-id (if search
72+
(concat "file:" filename "::" search)
73+
(concat "file:" filename))))
7074

7175
(defun org-annotate-code-add-filename-node (filename annotation)
7276
"Add the FILENAME as top-level node to ANNOTATION."
@@ -326,4 +330,3 @@ Useful properties are :type and :raw-link.
326330

327331
(provide 'org-annotate-code)
328332
;;; org-annotate-code.el ends here
329-

0 commit comments

Comments
 (0)