From: John Kitchin Date: Wed, 25 Mar 2015 17:49:27 +0000 (-0400) Subject: remove empty links and doi X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=0cc2275fc2fae335628696fd625848880d09e1d0 remove empty links and doi --- 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)))