From: Thomas Morgan <tlm@ziiuu.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: unconverted dashes in HTML export
Date: Mon, 10 Feb 2014 10:33:44 +0100 [thread overview]
Message-ID: <878utj71mv.fsf@azha.ziiuu.com> (raw)
In-Reply-To: <87ha8aymst.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 08 Feb 2014 10:29:54 +0100")
Hi, Nicolas,
> The new regexps still don't look right, as they can match an additional
> dash:
>
> (string-match "---\\([^-]?\\)" "----") => 0
>
> I'm not sure about the intent of this regexp, that is whether
> consecutive mdashes or ndashes are allowed or not.
>
> A correct version could be either:
>
> ("---" . "—")
>
> or
>
> ("\\([^-]\\|^\\)---\\([^-]\\|$\\)" . "\\1—\\2")
>
> I think the former is on par with LaTeX behaviour.
Good point, and I don't see any problem with your first version,
though I don't understand the intent behind the original regexp,
either. I had assumed the point was to avoid matching horizontal
separator lines in tables, but that doesn't seem to be an issue.
Thanks,
Thomas
prev parent reply other threads:[~2014-02-10 13:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-01 22:29 Bug: unconverted dashes in HTML export Thomas Morgan
2014-02-08 9:29 ` Nicolas Goaziou
2014-02-10 9:33 ` Thomas Morgan [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878utj71mv.fsf@azha.ziiuu.com \
--to=tlm@ziiuu.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.