Browse Source

org-bibtex: don't let trimming turn nils into empty strings

* lisp/org-bibtex.el (org-bibtex-get): Don't let trimming turn nils
  into empty strings.
Eric Schulte 6 years ago
parent
commit
d017fe977f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-bibtex.el

+ 1 - 1
lisp/org-bibtex.el

@@ -278,7 +278,7 @@ This variable is relevant only if `org-bibtex-export-tags-as-keywords` is t."
 
 ;;; Utility functions
 (defun org-bibtex-get (property)
-  (org-babel-trim
+  ((lambda (it) (when it (org-babel-trim it)))
    (or (org-entry-get (point) (upcase property))
        (org-entry-get (point) (concat org-bibtex-prefix (upcase property))))))