diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2013-04-14 10:28:27 -0600 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2013-04-14 19:26:01 +0200 |
commit | 06294c8dac17d3cd88ffbb6e70e31c42333ecf31 (patch) | |
tree | a764366fddb67e9f2f7c0665b991ca394ccdb2c7 | |
parent | 209e07124611ccba2b9847111017dd5e1778c2e9 (diff) | |
download | org-mode-06294c8dac17d3cd88ffbb6e70e31c42333ecf31.tar.gz |
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.
-rw-r--r-- | lisp/ox-beamer.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 04ce4de..2e2cfa9 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -518,7 +518,7 @@ used as a communication channel." ;; remove the first word from the contents in the PDF ;; output. (if (not fragilep) contents - (replace-regexp-in-string "\\`\n*" "\\& " contents)) + (replace-regexp-in-string "\\`\n*" "\\& " (or contents ""))) "\\end{frame}"))) (defun org-beamer--format-block (headline contents info) |