summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJambunathan K <kjambunathan@gmail.com>2011-10-19 22:16:59 +0530
committerJambunathan K <kjambunathan@gmail.com>2011-10-19 22:19:38 +0530
commitce6f67c1ef62d77358059403587677fc6314705f (patch)
tree9e83426a8d3e0855f8799e7ff3200b3cda8cc7b5
parentfaaa881c50ae58be301de7afbd5ef8438fe4523e (diff)
downloadorg-mode-ce6f67c1ef62d77358059403587677fc6314705f.tar.gz
Fix a crash in org-odt-is-formula-link-p
* contrib/lisp/org-odt.el (org-odt-is-formula-link-p): Trivial change to avoid a crash.
-rw-r--r--contrib/lisp/org-odt.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index 9bf158a..a14c827 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -1277,7 +1277,8 @@ value of `org-export-odt-use-htmlfontify."
(org-export-odt-format-formula thefile href)))
(defun org-odt-is-formula-link-p (file)
- (member (downcase (file-name-extension file)) '("mathml")))
+ (let ((case-fold-search nil))
+ (string-match "\\.mathml\\'" file)))
(defun org-odt-format-org-link (opt-plist type-1 path fragment desc attr
descp)