Re: Extra "blank space" causes misalignment in table cell

If you refer to the HTML specification, you will read:

  http://www.w3.org/TR/html401/appendix/notes.html#notes-line-breaks

  SGML (see [ISO8879], section 7.6.1) specifies that a line break
  immediately following a start tag must be ignored, as must a line
  break immediately before an end tag. This applies to all HTML
  elements without exception.

The line breaks added by Amaya should not change anything in the
way a bowser renders the table. IE and NN are wrong. Anyway, if
this is felt as an annoyance, we can remove these linebreaks in
the next release, as the HTML will still be valid.

Vincent.

Keith Refson wrote:
>
> I have just tried out the Amaya editor for the first time, primarily
> to investigate whether we can recommend it to our users for updating
> their parts of the web site.  It is the first tool which can be
> trusted not to rewrite the HTML incorrectly!
> 
> However there is one small glitch, which is manifested with code such
> as for a table cell:
> 
>    <td><img src=....></td>
> 
> which gets written out after editing the document as:
> 
>    <td>
>       <img src=....>
>    </td>
> 
> This has added extra blank space following the IMG, which causes
> the table to render differently in both Netscape and Internet xplorer.
> The effect of this extra space is to misalign the carefully-aligned
> parts of the table.
>
> The author of "HTML Tidy" is aware of this problem, which deals with
> it carefully, but Amaya does not. 
> 
> Can anyone suggest a workaround?
> 
> And it would be wonderful if this was fixed in the next release.. I
> know this is on the borderline of the markup/layout and
> browser-dependent rendering issue, but I don't see any harm in a fix
> which is entirely an HTML indentation and layout matter.
> 
> sincerely
> 
> Keith Refson
> -- 
> Dr Keith Refson,        "Paradigm is a word too often used by those who would
> Dept of Earth Sciences      like to have a new idea but cannot think of one." 
> Parks Road,                  -- Mervyn King, Deputy Governor, Bank of England
> Oxford OX1 3PR, UK        
> Keith.Refson@                       Tel: 01865 272026
>              earth.ox.ac.uk         Fax: 01865 272072
> 

-------------------------------------------------------
Vincent Quint                       INRIA Rhone-Alpes
W3C/INRIA                           ZIRST
e-mail: Vincent.Quint@w3.org        655 avenue de l'Europe
Tel.: +33 4 76 61 53 62             38330 Montbonnot St Martin
Fax:  +33 4 76 61 52 07             France

Received on Tuesday, 8 February 2000 12:32:36 UTC