[pmwiki-users] pmCalendar

Patrick R. Michaud pmichaud at pobox.com
Thu Oct 20 19:38:23 CDT 2005


On Thu, Oct 20, 2005 at 06:03:59PM -0500, Chris Cox wrote:
> Try
> http://theendlessnow.com/ten/Test/PmCal
> 
> Just shows up as (:pmcal:)
> 
> It's running 2.0.6

Aha!  Look at

    http://theendlessnow.com/ten/Test/PmCal?action=ruleset

Looks like the Markup rules have been declared "directive"
instead of "directives", so they're being executed in the
wrong sequence.  In particular, the "pmcal" rule is being
executed before the "split", so the (:pmcal:) markup isn't
appearing at the beginning of a line.

I freely admit that in the list of

    _begin
    split
    directives   <--
    inline
    links        <--
    block
    style
    _end

the "links" and "directives" sections aren't consistently named 
with the rest.  Sorry about that.  The easy fix for now is to
accept 'directive' as being part of the 'directives' section:

    Markup('directive', 'directives');

Then both 'directive' and 'directives' will work.

Pm




More information about the pmwiki-users mailing list