]> git.donarmstrong.com Git - org-ref.git/blobdiff - org-ref.org
add global-hi-lock to avoid annoying warning
[org-ref.git] / org-ref.org
index 40fe0412895ff46d609baabef730e2395f6f76a5..f0d94ec9c438e464a973331b2c3949f61b291e0a 100644 (file)
@@ -452,7 +452,7 @@ label:test
   `((t (:inherit org-link :foreground ,org-ref-ref-color)))
   "Face for ref links in org-ref.")
 
-
+(global-hi-lock-mode 1)
 (when org-ref-colorize-links
   (highlight-regexp org-ref-cite-re 'org-ref-cite-face)
   (highlight-regexp org-ref-label-re 'org-ref-label-face)
@@ -1776,14 +1776,14 @@ We need some convenience functions to open act on the citation at point. These w
         (catch 'done
           (let ((url (bibtex-autokey-get-field "url")))
             (when  url
-              (browse-url url)
+              (browse-url (s-trim url))
               (throw 'done nil)))
 
           (let ((doi (bibtex-autokey-get-field "doi")))
             (when doi
               (if (string-match "^http" doi)
                   (browse-url doi)
-                (browse-url (format "http://dx.doi.org/%s" doi)))
+                (browse-url (format "http://dx.doi.org/%s" (s-trim doi))))
               (throw 'done nil))))))))