Browse Source

ox-beamer: Don’t auto-label allowframebreaks frames; beamer forbids it.

* lisp/ox-beamer.el (org-beamer--format-frame): Don’t give a label if
allowframebreaks” is set.
Aaron Ecay 10 years ago
parent
commit
9db1f7af78
1 changed files with 5 additions and 2 deletions
  1. 5 2
      lisp/ox-beamer.el

+ 5 - 2
lisp/ox-beamer.el

@@ -425,9 +425,12 @@ used as a communication channel."
 				(match-string 1 beamer-opt))
 			   ","))
 		     ;; Provide an automatic label for the frame
-		     ;; unless the user specified one.
+		     ;; unless the user specified one.  Also refrain
+		     ;; from labeling `allowframebreaks' frames; this
+		     ;; is not allowed by beamer.
 		     (unless (and beamer-opt
-				  (string-match "\\(^\\|,\\)label=" beamer-opt))
+				  (or (string-match "\\(^\\|,\\)label=" beamer-opt)
+				      (string-match "allowframebreaks" beamer-opt)))
 		       (list
 			(format "label=%s"
 				(org-beamer--get-label headline info)))))))