[pmwiki-users] Starting #anchor always included

tkcusr tkcusr at yahoo.com
Sat Feb 19 10:55:12 CST 2011


I think this is related to conditional markup processing, because the 
problem does not occur without (:if)(:ifend:)


On 2/19/2011 5:35 PM, tkcusr wrote:
> Hello,
> I have a weird problem using include directive.
> The markup on a page is as follows:
>
> (:if false:)
> [[#start]]
> * aaa
> * bbb
> * ccc
> [[#end]]
> (:ifend:)
>
> (:include {$Name}#start:)
>
>
> That's rendered into HTML as follows:
>
> <p class='vspace'>
> <a name='start' id='start'></a>
> </p>
> <ul>
> <li>aa</li>
> <li>bb</li>
> </ul>
>
>
> The problem is starting anchor is always included, which I don't want
> (cause <p> breaks style of the list containing div).
> How can I eliminate that anchor from rendered target? or is this a bug?
>
> Thanks.





More information about the pmwiki-users mailing list