W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2006

Amaya 9.523 WinXP bug: images and spaces

From: Bartolomé Sintes Marco <bartolomesintes@ono.com>
Date: Thu, 26 Oct 2006 11:52:56 +0200
Message-ID: <45408578.3020906@ono.com>
To: www-amaya@w3.org
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)

061026-1.png
(image/png attachment: 061026-1.png)

061026-2.png
(image/png attachment: 061026-2.png)

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:52 UTC