[pmwiki-users] (:include:) directive not working fully

Patrick R. Michaud pmichaud at pobox.com
Wed May 2 22:07:34 CDT 2007


On Wed, May 02, 2007 at 07:33:13PM -0700, Brent Zupp wrote:
> After upgrading to Version 2.2.0-beta45, I found that some of my
> (:include:) directives were not working quite right.
> 
> If I have a page that includes a #start and #end anchor in the page,
> the following (:include:) directive works fine:
> 
> (:include PageNameHere#start#end:)
> 
> However, if the page does not contain the #start anchor (i.e, page
> contains ONLY the #end anchor), the directive will not work in beta45,
> though it did work in beta44.

"Uh oh."

Yes, the (:include:) directive was refactored a bit in this release.  
I don't think we ever intended that a missing start anchor would
be treated as the start of page text.

I'll have to think about the ramifications a bit, but I may be
able to restore that interpretation to (:include:).

FWIW, the "official" way to get top of page to an anchor is

   (:include PageNameHere##end :)

Pm



More information about the pmwiki-users mailing list