[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: unconverted dashes in HTML export

From: Thomas Morgan
Subject: Re: [O] Bug: unconverted dashes in HTML export
Date: Mon, 10 Feb 2014 10:33:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]