Re: Amaya 9.523 WinXP bug: images and spaces

Hi Bartolomé,

You're right, the pretty printing of Amaya generated always a newline after an 
<img>. This didn't work in the case you mention.
This bug is now fixed in the CVS version.

On Thursday 26 October 2006 11:52, Bartolomé Sintes Marco wrote:
> 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)

-- 
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Thursday, 26 October 2006 13:52:51 UTC