Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jkitchin/org-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Nov 29, 2022
2 parents ac7650f + d93cb25 commit 40bbd11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions org-ref-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ The clickable part are the keys.")
(setq font-lock-extra-managed-props (delq 'help-echo font-lock-extra-managed-props))
(goto-char (match-beginning 0))
(let ((end (match-end 0)))
(cl-loop for key in (split-string (match-string-no-properties 4) ",")
(cl-loop for key in (mapcar #'s-trim (split-string (match-string-no-properties 4) ","))
unless (string-empty-p key)
do
(save-match-data
(search-forward key)
Expand All @@ -84,7 +85,9 @@ The clickable part are the keys.")
(bibtex-beginning-of-entry))))
map)
help-echo ,(let* ((bibtex-completion-bibliography (org-ref-latex-get-bibliography)))
(bibtex-completion-apa-format-reference key))))))
(condition-case nil
(bibtex-completion-apa-format-reference key)
(error (display-warning :warning (format "Key %s missing." key)))))))))
(goto-char end))))


Expand Down

0 comments on commit 40bbd11

Please sign in to comment.