summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-06-25 06:35:25 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2013-06-25 06:35:25 (GMT)
commitb4f90c687d647e401e59e0dba88042d410105e51 (patch)
treea2531388e166660138bb2b0db93eb2ed493e3927
parentb4fb00a21a8a334066deb0fb9196568b54f4ef12 (diff)
downloadorg-mode-b4f90c687d647e401e59e0dba88042d410105e51.zip
org-mode-b4f90c687d647e401e59e0dba88042d410105e51.tar.gz
ox-odt: Allow to turn smart quotes off
* lisp/ox-odt.el (org-odt-plain-text): Allow to turn smart quotes off. Patch suggested by Georg Lehner.
-rw-r--r--lisp/ox-odt.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 7e1390e..a2a28f8 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2966,7 +2966,8 @@ contextual information."
(setq output (org-odt--encode-plain-text output t))
;; Handle smart quotes. Be sure to provide original string since
;; OUTPUT may have been modified.
- (setq output (org-export-activate-smart-quotes output :utf-8 info text))
+ (when (plist-get info :with-smart-quotes)
+ (setq output (org-export-activate-smart-quotes output :utf-8 info text)))
;; Convert special strings.
(when (plist-get info :with-special-strings)
(mapc