- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Wed, 26 Dec 2001 02:34:13 +0100
- To: Terry Teague <terry_teague@users.sourceforge.net>
- Cc: html-tidy@w3.org
* Terry Teague wrote:
>At 5:27 PM +0100 11/10/01, Bjoern Hoehrmann wrote:
>>* Michael Goldberg wrote:
>>>If I run the input at the bottom of this e-mail through Tidy, the <ul> tag
>>>is converted to a <div> tag. I presume this is being done because the <ul>
>>>element does not have any direct <li> child elements. That's probably OK,
>>>but the problem we are having is with the following generated <div> tag:
>>>
>>><div style="margin-left: 2em" style='margin-top:0in'>
>>
>>I cannot reproduce this with the current or the 04 august 2000 version.
>
>Actually I can reproduce this with both the current and 04 Aug 00 version.
>I had a quick look at the source to see if there was something obviously
>wrong, but it wasn't that simple.
clean.c:BQ2Div(), check before AddAttribute(...) (line 1629) whether the
node already has a style attribute. If so, insert indent_buf at the very
beginning of the attribute value plus ';', otherwise AddAttribute(...).
This is not a perfect solution, but a reasonable one.
--
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Tuesday, 25 December 2001 20:35:17 UTC