[pmwiki-users] (:include:) or (:pagelist:) bug in pmwiki-2.1.beta26
John Coxon
john at coxontool.com
Mon Feb 20 08:17:41 CST 2006
I applaud Pm and crew for the recent (:pagelist:) feature enrichment.
The count=random feature is a big hit with me. In trying an
implementation to extract a few lines from pages in a group, a little
bug had me tearing the remaining few of my hairs out. I finally tracked
the mysteriously, only occasionally, disappearing line(s) to the
presence or lack of a CR at the end of a page being extracted from.
I set up a PageListTemplate to display lines=4..13 of selected files.
If a file happens to contain less than the full 13 lines, the last line
(or 2?) does not get displayed.
Here is a test page sequence I set up:
http://www.coxontool.com/index.php/Test/HomePage
And below the contents of that page.
Can this be fixed?
John
***********************
!!Bug Test of PageList Template:
[@
[[#bookclip]]
!![[{=$FullName}|+]]
(:include {=$FullName} lines=4..13:)
[[{=$FullName}|more...]]
(:if ! equal {>$Group}:)
-----
(:if:)
[[#bookclipend]]
@]
Using PageList:
[@
(:pagelist fmt=#bookclip group=Test count=6:)
@]
!!Bug:
Template returns two less than the correct number of lines if no CR is
present at end of a page that contains less than a full complement of
13 lines.
----
(:pagelist fmt=#bookclip group=Test count=6:)
More information about the pmwiki-users
mailing list