Pārlūkot izejas kodu

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 11 gadi atpakaļ
vecāks
revīzija
b4f90c687d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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