|
@@ -4079,11 +4079,14 @@ INFO is a plist used as a communication channel.
|
|
|
|
|
|
Return value can be a radio-target object or nil. Assume LINK
|
|
|
has type \"radio\"."
|
|
|
- (let ((path (org-element-property :path link)))
|
|
|
+ (let ((path (replace-regexp-in-string
|
|
|
+ "[ \r\t\n]+" " " (org-element-property :path link))))
|
|
|
(org-element-map (plist-get info :parse-tree) 'radio-target
|
|
|
(lambda (radio)
|
|
|
(and (eq (compare-strings
|
|
|
- (org-element-property :value radio) 0 nil path 0 nil t)
|
|
|
+ (replace-regexp-in-string
|
|
|
+ "[ \r\t\n]+" " " (org-element-property :value radio))
|
|
|
+ nil nil path nil nil t)
|
|
|
t)
|
|
|
radio))
|
|
|
info 'first-match)))
|