浏览代码

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.
Eric Schulte 12 年之前
父节点
当前提交
06294c8dac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ox-beamer.el

+ 1 - 1
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)