Re: Missing blank in a text node after validation using JTIDY

* Nicolas Martin wrote:
>I am new in this list and i use JTidy API (the java version of tidy). I noticed
>a bug, and i don't know if someone got the same problem. When for instance
>i have the following HTML code :
>
>....
><tr>
>  <td> 
>  <font>This is a</font>
>  <font> text</font>
>  
>  </td>
>  <td> test 3 </td>
>  <td> test 2 </td>
> </tr>
>....

Latest HTML Tidy (http://tidy.sf.net) will give you

  <tr>
  <td><font>This is a</font> <font>text</font></td>
  <td>test 3</td>
  <td>test 2</td>
  </tr>

>My problem is that inside the seconde <font> node the text
>start with a blank which disappear after the validation.
>
>If anyone know how i could fix the pb..?

You are strongly encouraged to avoid leading and trailing white space in
inline elements. Anyway, Tidy's behaivour should only cause problems, if
your second font element (you are strongly encouraged to avoid font
elements at all, by the way) has a right-to-left directionality (as I've
noted before...) Why is Tidy's behaivour a problem to you?

regards,

Received on Friday, 1 March 2002 18:33:48 UTC