emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: bug in org-export-smart-quotes
Date: Fri, 27 Mar 2015 15:20:28 -0400	[thread overview]
Message-ID: <87h9t6458j.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAGE7GqB0VCPneBeRHRg=S-u5KwuOBPgKJbGqGx8feRXAOZEJDw@mail.gmail.com

Jay Dixit <dixit@aya.yale.edu> 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

  reply	other threads:[~2015-03-27 19:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 18:45 bug in org-export-smart-quotes Jay Dixit
2015-03-27 19:20 ` Nick Dokos [this message]
2015-03-27 20:23 ` Jay Dixit
2015-03-27 23:35   ` Nick Dokos
2015-03-28 15:03   ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h9t6458j.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).