[pmwiki-users] wikipublisher-2.0.5 release

John Rankin john.rankin at affinity.co.nz
Thu Apr 20 17:14:36 CDT 2006


On Thursday, 20 April 2006 6:55 PM, francois <francois.lagarde at gmail.com> wrote:
>John Rankin <john.rankin <at> affinity.co.nz> writes:
>
>
>> I would guess that sectionedit is inserting its html code in such a
>> way that the !!# start of line markup is no longer being recognised 
>> as start of line markup. [...]
>> Could you extract the relevant html from the page source and
>post it?
>
>certainly:
>If i use:
>(:toc-hide:)
>! titlea
>sectiona
>!! subsectiona
>subsectiona
>! titleb
>titleb
>
>I get:
>1.? titlea
>sectiona
>!!#1.1? subsectiona
>subsectiona
>2.? titleb
>
>titleb 
>I know that is not really nice to include an html part
><snip>

Ah  -- here's the problem.
><p>sectiona
></p><div class='sectionedit'><a name='sMain.WikiSandbox_2'></a><a
>href='http://localhost/~francois/pmwiki/Main/WikiSandbox?action=edit&amp;s=2&amp;auto=y&amp;from=Main.WikiSandbox'>(Edit
>Section &#x2193;)</a></div>
>!!#1.1&ensp; subsectiona
><p class='vspace'></p><snip>
>
Notice that there is no html tag around the heading. Try inserting a blank line:

(:toc-hide:)
! titlea
sectiona

!! subsectiona
subsectiona

! titleb
titleb

This appears to me to be a bug in section edit. It may be that
a <:block> instruction is needed to tell pmwiki to treat the
sectionedit div as its own block, but that's just a guess.
At the moment, the heading text is being treated as part of
the sectionedit block, I think.
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list