[PATCH 1 of 2] rst: in @mention parser, escape spaces so they don't go to HTML
Mads Kiilerich
mads at kiilerich.com
Wed May 6 09:28:46 EDT 2015
On 05/06/2015 07:20 AM, Andrew Shadura wrote:
>
> > I don't think I have seen this - can you
> > point at a "before" example? Perhaps
> > also describe it in the commit message.
>
> No link at the moment, but every time you type something like this:
>
> @username, have you seen it?
>
> it turns into:
>
> @username , have you seen it?
>
> So an extra space is inserted. It was inserted because otherwise rst
> parser might not recognise the markup (imagine @user1, at user2 which is
> replaced by **user1**,**user2** — that would be interpreted as
> <b>user1**,**user2</b>).
>
Thanks - a very good explanation. Would be nice to have in the commit
message.
/Mads
More information about the kallithea-general
mailing list