X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.el;h=cf279584d0a22b7fb1a085a03ffe6061cd2c2333;hp=4ad23bd0023dff86aaa39525e99965a46b7339e0;hb=0cc2275fc2fae335628696fd625848880d09e1d0;hpb=837a40a0aa440126af8ca228565373082f460a26;ds=sidebyside diff --git a/org-ref.el b/org-ref.el index 4ad23bd..cf27958 100644 --- a/org-ref.el +++ b/org-ref.el @@ -551,6 +551,9 @@ Format according to the type in `org-ref-bibliography-entry-format'." (setq output (replace-regexp-in-string " {\\(.*\\)} " " \\1 " output)) ;; get rid of empty parens (setq output (replace-regexp-in-string "()" "" output)) + ;; get rid of empty link and doi + (setq output (replace-regexp-in-string " link\\." "" output)) + (setq output (replace-regexp-in-string " doi\\." "" output)) (format "
  • [%s] %s
  • " key key output)))