[pmwiki-users] Markup function bug or feature?

John Rankin john.rankin at affinity.co.nz
Thu Aug 18 17:40:13 CDT 2005


On Thursday, 18 August 2005 1:37 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>> Markup('rulex','sequence1','pattern1','replacement1');
>> 
>> intervening code
>> 
>> Markup('rulex','sequence2','pattern2','replacement2');
>> 
>> As we know, pattern1 takes precedence over pattern2.
>> 
>> As I eventually discovered, sequence2 takes precedence over sequence1.
>> 
>> Is this a bug or a feature?
>
>Neither.  Either.  Both.  
>
>It's just an artifact of the current implementation; I didn't have
>any examples handy to provide guidance as to what should happen,
>so I just went with what seemed to make the implementation
>easiest.

Fair enough. If it's easy, perhaps sequence1 ought to take
priority over sequence2, for consistency. But if it's more than
10 seconds' work, forget it. I have fully recovered from my
'why the **** isn't this working?' experience :-)



-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list