[pmwiki-users] Bugs in TextSection and MakePageName

Petko Yotov 5ko at 5ko.fr
Wed Feb 13 07:12:49 CST 2008


On Wednesday 13 February 2008, Hans wrote:
> I think I found a bug in function TextSection (pmwiki.php):
>
> The function did not return the correct text when using the suffix
> ..#section to  a pagename, which should return all text up to anchor
> [[#section]].
[...]
>
> I need that for placing a manipulated section back into the whole
> text. Fox is doing this, and I now had to create a slightly modified
> version of TextSection in order to get the section position.

Fox is the new ZAP. ;-)

No, this is not a bug, you are using it incorrectly. 

You need to use:
  Page##section 

or:
  Page#..#section


and not
  Page..#section


>
> Related to this I think there is also a bug in function MakePageName:
> It appears that MakePageName does not deliver a pagename if the name
> supplied has a suffix '..#section'. It strips off any other anchor
> suffix, but not this one.

See above for the correct syntax.

Thanks,
Petko





More information about the pmwiki-users mailing list