00047: space linked in [[text -> PITS/target]] links

Summary: space linked in text? links
Created: 2004-09-18 14:35
Status: Closed - fixed for 2.0.devel6
Category: Bug
From: Bronwyn
Assigned:
Priority: 3
Version: 2.0devel5
OS: WinXP / Apache 2.0.50 / PHP 5.0.1

Description: When using [[text -> target links]], the space between text and -> is included in the link text. e.g.:

The regexp needs to be amended so that the whitespace before the -> is not considered part of the link text. I expect that the regexp is something like:

/\\[\\[(.*?)->\\s*(\\S+)\\]\\]/

(this is a guess based on http://pmichaud.com/pipermail/pmwiki-users_pmichaud.com/2004-June/005751.html)

If so, the problem can be fixed by changing it to

/\\[\\[(.*?)\\s*->\\s*(\\S+)\\]\\]/


Fixed in CVS. --Pm