[pmwiki-users] Formatting in lists

Dominique Faure dominique.faure at gmail.com
Wed Apr 30 16:04:15 CDT 2008


On Wed, Apr 30, 2008 at 10:31 PM, Jan Erik Moström <lists at mostrom.pp.se> wrote:
> OK, I spent an hour or so trying to figure this one out but
>  failed. I've got a list where an item contains some source code,
>  something like this
>
>  # blupp blupp blupp
>    (:source lang=html4strict:)
>    several lines
>    (:sourceend:)
>
>  # blipp blipp
>
>  My problem here is that the blipp blipp item starts with 1
>  instead of continuing with n+1. Is it not possible to have
>  source block like this in a list or am I missing something.
>

The source code block is to be considered... as a block :)
You need to explicitely bind it to the item in order to prevent list breaks:

  # blupp blupp blupp\\
    (:source lang=html4strict:)
    several lines
    (:sourceend:)

  # blipp blipp


-- 
Dominique



More information about the pmwiki-users mailing list