Amaya 9.523 WinXP bug: images and spaces

Hi,

I am not sure if this bug is related to last Robin White messages, but 
it is true that Amaya generates source code that creates white-spaces 
that can not be deleted.

For example, copy and paste the following source code into a blank page 
(you will need a black.png image file, of course):
- - - - - - - -
<table border="1">
   <caption></caption>
   <tbody>
     <tr>
       <td><img alt="0" src="black.png" />Test 1</td>
     </tr>
   </tbody>
</table>

<table border="1">
   <caption></caption>
   <tbody>
     <tr>
       <td><img alt="blackbox" src="black.png" />
         Test 2</td>
     </tr>
   </tbody>
</table>
- - - - - - - -
Both Amaya and Firefox show a space between the image and the text in 
the second table (screenshot 1), but not in the first one.

Now, delete this space in normal view. When you save and reload the 
document, the space is there again in both tables! (screenshot 2).

The reason for this behaviour is that Amaya has transform the source 
code into:
- - - - - - - -
<table border="1">
   <caption></caption>
   <tbody>
     <tr>
       <td><img alt="0" src="black.png" />
         Test 1</td>
     </tr>
   </tbody>
</table>

<p></p>

<table border="1">
   <caption></caption>
   <tbody>
     <tr>
       <td><img alt="blackbox" src="black.png" />
         Test 2</td>
     </tr>
   </tbody>
</table>
- - - - - - - -
Now, text and img are not in the same line of the source code, so a 
space is created. But if I do not want this space to be shown, what can 
I do?

Best regards,
Bartolomé Sintes (http://www.mclibre.org)

Received on Thursday, 26 October 2006 09:52:59 UTC