From e856d1cfe7d50f0954ad134996291aea29036371 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Wed, 2 Nov 2011 23:32:49 +0530 Subject: [PATCH] org-odt.el: Protect label references against downstream expansion * contrib/lisp/org-odt.el (org-export-odt-preprocess-label-references): Mark label as protected text and protect it from being expanded downstream. Fixes bug reported by Myles English here: http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00069.html --- contrib/lisp/org-odt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index 10c7fe3ca..f96372e54 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -2209,7 +2209,8 @@ using `org-open-file'." ;; time we would have seen and collected all the label ;; definitions in `org-odt-entity-labels-alist'. (org-odt-format-tags - "" "" label)) t t))))) + "" "" + (org-add-props label '(org-protected t)))) t t))))) ;; process latex fragments as part of ;; `org-export-preprocess-after-blockquote-hook'. Note that this hook -- 2.11.4.GIT