From 4ee7e60405a5c7e17cb171009d7efc80076dff82 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 26 Dec 2013 12:35:59 +0100 Subject: [PATCH] ox: Fix smart quote detection * lisp/ox.el (org-export-smart-quotes-regexps): Fix smart quote detection when it is followed by an open parenthesis syntax class. --- lisp/ox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 52d2dbd07..231032712 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -4955,7 +4955,7 @@ If no translation is found, the quote character is left as-is.") (defconst org-export-smart-quotes-regexps (list ;; Possible opening quote at beginning of string. - "\\`\\([\"']\\)\\(\\w\\|\\s.\\|\\s_\\)" + "\\`\\([\"']\\)\\(\\w\\|\\s.\\|\\s_\\|\\s(\\)" ;; Possible closing quote at beginning of string. "\\`\\([\"']\\)\\(\\s-\\|\\s)\\|\\s.\\)" ;; Possible apostrophe at beginning of string.