[pmwiki-users] pagelist with additional information

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 15 15:23:21 CDT 2006


On Thu, Jun 15, 2006 at 01:06:10PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> > If the billed entry is always going to be on the
> > same markup
> > line in each page of the list (e.g., if it's always
> > the second 
> > line of markup), one could do:
> > 
> >     * {=$Title}, (:include {=$FullName} lines=2..2:)
> > 
> > This just grabs the second line of each page in the
> > list.
> 
> I think the problem is not that the text was on the
> 2nd line of the included page, but that the
> (:include:) directive puts a return before including
> its text, making the incldued text appear on the line
> after the title?  

The (:include:) directive *does not* put any returns before
or after the text it includes.  (It doesn't strip returns, but
neither does it add them.)

If returns are showing up in the include, it's because they 
exist somehow in the original markup.  In particular, given
an include like:

    (:include {=$Name}#Billed:)

where the target page contains

    [[#Billed]]
    [[Billed.False]]
    [[#BilledEnd]]

means that the included text comes back as "[[#Billed]]\n[[Billed.False]]\n",
and the newlines are from the original text.

What you'd likely want in this particular approach is

    (:include {=$Name}#Billed lines=1:)

and have the page contain

    [[#Billed]] [[Billed.False]]

which gets just the single line containing the [[Billed.False]]
statement.

Pm





More information about the pmwiki-users mailing list