Browse Source

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.
Nicolas Goaziou 4 years ago
parent
commit
b4f90c687d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-odt.el

+ 2 - 1
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