From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: bug in org-export-smart-quotes Date: Fri, 27 Mar 2015 15:20:28 -0400 Message-ID: <87h9t6458j.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZoW-0004hW-8b for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 15:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbZoR-0003n9-AP for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 15:21:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:32910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZoR-0003n4-3q for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 15:20:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YbZoL-0003Kl-NT for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 20:20:53 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Mar 2015 20:20:53 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Mar 2015 20:20:53 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jay Dixit writes: > Hi everyone, > > I've noticed that when I use quotation marks in conjunction with an em dash (—), org-export-smart-quotes gets confused and forgets > to activate smart quotes for the closing quotation mark. > > If my org-mode file contains a sentence like this... > > A [[http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract][new study]] published in Psychological and > Personality Science has found that helping other people---what scientists call being "prosocial"---increases your odds of finding a > long-term relationship. > > ...then it exports to HTML like this: > > A new study published in Social Psychological and Personality Science has found that helping other people—what scientists call > being “prosocial"—increases your odds of finding a long-term relationship. > > Note the non-smart closing quotation mark. Does anyone know a fix for this?  > The regexps are probably looking for spaces - try ... people --- what scientists call being "prosocial" --- increases Nick