W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

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

From: Allan Clark <allanc@caldera.com>
Date: Thu, 21 Mar 2002 10:04:54 -0500
Message-ID: <3C99F696.B3AB32C6@caldera.com>
To: Aravind <aravind@longboys.net>
CC: html-tidy@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:51 GMT