forked from mirrors/org-mode
ox-beamer: Ensure nil is not passed to regexp function
* lisp/ox-beamer.el (org-beamer--format-frame): If contents is nil, then replace it with an empty string.
This commit is contained in:
parent
209e071246
commit
06294c8dac
|
@ -518,7 +518,7 @@ used as a communication channel."
|
||||||
;; remove the first word from the contents in the PDF
|
;; remove the first word from the contents in the PDF
|
||||||
;; output.
|
;; output.
|
||||||
(if (not fragilep) contents
|
(if (not fragilep) contents
|
||||||
(replace-regexp-in-string "\\`\n*" "\\& " contents))
|
(replace-regexp-in-string "\\`\n*" "\\& " (or contents "")))
|
||||||
"\\end{frame}")))
|
"\\end{frame}")))
|
||||||
|
|
||||||
(defun org-beamer--format-block (headline contents info)
|
(defun org-beamer--format-block (headline contents info)
|
||||||
|
|
Loading…
Reference in New Issue