Re: Tidy - <p> and <br> tags gets added as list items in lists.

Aravind;

Some quick research gives me
http://www.w3.org/TR/REC-CSS2/box.html#mpb-examples which might address
your problem; it discusses CSS to indicate padding between list items.

Allan


Aravind wrote:
> 
> Hi everyone,
>  <p> and <br><br> tags when used to provide extra spacing
> between list items, gets added as a separate list item ,
> when tidied.
> 
>  For eg:
> 
>  <li>Item1</li><p>
>  <li>Item2</li><p>
> 
> When the drop-paras option is set to no, tidy converts the
> above to
>         <LI>
>              Item1
>           </LI>
>           <LI style="list-style: none">
>              <BR>
>              <BR>
>           </LI>
>           <LI>
>              Item2
>           </LI>
>           <LI style="list-style: none">
>              <BR>
>              <BR>
>         </LI>
> 
>  Setting the drop-paras option to yes does not help either
> 'cause <p> tags are dropped and the spacing between the list
> items are lost when tidied.
> 
>  I would really appreciate if anyone can give me a clue to
> get around this.
> 
>  Thanks
>  Aravind.

Received on Thursday, 21 March 2002 10:05:01 UTC