[pmwiki-users] New Recipe: IntuitiveSpacing

Hans design5 at softflow.co.uk
Thu Mar 15 14:32:21 CDT 2007


Thursday, March 15, 2007, 7:26:56 PM, Patrick wrote:

> Actually, you want to change only _leading_ spaces, so I think this should have
> a caret, as in:

>   Markup('spacing', '>^ws', "/^(\\s{1,7})/e",
>           "str_replace(' ',' ', '$1');");

> I think this is also the issue with Site.PageActions -- adding
> the caret should fix that as well.

I want to change both leading spaces as spaces in between words etc.,
to preserve white spaces literally in text as well.


Hans




More information about the pmwiki-users mailing list