[pmwiki-users] Starting #anchor always included

Patrick R. Michaud pmichaud at pobox.com
Sat Feb 19 11:04:40 CST 2011


On Sat, Feb 19, 2011 at 05:35:37PM +0200, tkcusr wrote:
> (: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?

I don't think there's a way to eliminate the anchor, but you can
put it on the same line as the first list item to avoid the
extra paragraph:

  (:if false:)
  * aaa [[#start]]
  * bbb
  * ccc
  [[#end]]
  (:ifend:)

Pm



More information about the pmwiki-users mailing list