emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug?, ox] smartquotes and lines
@ 2015-02-22 17:10 Rasmus
  2015-02-22 17:43 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2015-02-22 17:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Consider this example:

#+OPTIONS: ':t
"foo"---"bar"

Expected output is (IMO) something like “foo”—“bar”.  Actual output is
something like “foo"—"bar”, i.e. the quotes very close to the em-dash are
not replaced.  Note you can get the desired output by adding spaces around
the em-dash but that's undesirable in this case.

Is this a feature?

Thanks,
Rasmus

-- 
Er du tosset for noge' lårt!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [bug?, ox] smartquotes and lines
  2015-02-22 17:10 [bug?, ox] smartquotes and lines Rasmus
@ 2015-02-22 17:43 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-02-22 17:43 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> Consider this example:
>
> #+OPTIONS: ':t
> "foo"---"bar"
>
> Expected output is (IMO) something like “foo”—“bar”.  Actual output is
> something like “foo"—"bar”, i.e. the quotes very close to the em-dash are
> not replaced.  Note you can get the desired output by adding spaces around
> the em-dash but that's undesirable in this case.
>
> Is this a feature?

This is a limitation due to the regexps used by smart quotes. You can
always defeat them.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-22 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-22 17:10 [bug?, ox] smartquotes and lines Rasmus
2015-02-22 17:43 ` Nicolas Goaziou

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).