File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 63
63
(defun org-annotate-code-add-heading0 (annotation )
64
64
(if org-annotate-code-heading0 (cons (list :heading org-annotate-code-heading0) annotation) annotation))
65
65
66
+ (defun org-annotate-code-wrap-id (id )
67
+ " Wrap ID with brackets or not."
68
+ (org-link-make-string id))
69
+
66
70
(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))))
70
74
71
75
(defun org-annotate-code-add-filename-node (filename annotation )
72
76
" Add the FILENAME as top-level node to ANNOTATION."
@@ -326,4 +330,3 @@ Useful properties are :type and :raw-link.
326
330
327
331
(provide 'org-annotate-code )
328
332
; ;; org-annotate-code.el ends here
329
-
You can’t perform that action at this time.
0 commit comments