commit 398eb45beeb977ad5ae251abb185c7ba323f36b4
parent 75e0828bea322653fdb9690f22961cf07e9a6010
Author: Tomas Hlavaty <tom@logand.com>
Date: Fri, 5 Jun 2020 19:19:25 +0200
header and footer functions can return nil
e.g. pdf-dirpart
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/emacs-pdf.el b/emacs-pdf.el
@@ -272,11 +272,12 @@ header or footer."
(*pdf-number-of-pages* n)
(*pdf-file-name* file-name))
(dolist (x list)
- (insert
- (etypecase x
- (function (funcall x))
- (symbol (symbol-value x))
- (string x)))))
+ (when x
+ (insert
+ (etypecase x
+ (function (funcall x))
+ (symbol (symbol-value x))
+ (string x))))))
(buffer-string)))
(defun pdf-header-text (i n file-name)