[pmwiki-users] (:include ... lines=

Henrik Bechmann henrik at bechmannsoftware.com
Sun Nov 20 17:54:13 CST 2005


For the (:include:) directive with the lines=n parameter, if the nth 
line is the last line in the wikitext, and is not ended with a "\n" 
(newline) it is not picked up by the (:include:) directive. I believe 
this qualifies as a bug (unless, of course it is a feature<grin>).

In my (:includefieldpage:) directive (which is starting to work -- 
you'll see more of it soon, for any who are interested) which copies and 
modifies the IncludeText() function, I have corrected the problem with

       $itext = @$ipage['text'] . "\n";


- Henrik


Henrik Bechmann
Webmaster, www.dufferinpark.ca

More information about the pmwiki-users mailing list