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.
This commit is contained in:
Aaron Ecay 2014-12-09 01:14:54 -05:00
parent f12e3d4589
commit 9db1f7af78
1 changed files with 5 additions and 2 deletions

View File

@ -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)))))))