Re: Reformatting errors

When loading a document, Amaya parses the source code and builds a DOM tree.
Editing is then performed on this tree and a completely new source code 
is generated
from the tree when the document is saved. Formatting of the source code 
is therefore
not preserved by Amaya. The DOCTYPE declaration has nothing to do with this.

I was not able to reproduce the bug of the misplaced </p>, but the bug 
of the
new line generated before the '.' is now fixed in the CVS base.

Thanks for pointing this out.

Vincent.

On 1/09/08 23:12, Mike Brown wrote:
> Pre-4 for W2K installed.
>
> Amaya has an annoying habit (to me anyway) of completely reformatting my
> HTML layout.  What does it take to stop this practice?
>
> Worse, it gets things wrong, to wit:
>
> <p>The full production number starts with 011-40217. For example, the full
> production number for <em>Stairway to Heaven</em> is 011-40217-046.</p>
> <!--$url-minder-ignore$-->
>
> <p>This page downloaded on <!--#echo var="DATE_GMT"-->
> <!--$/url-minder-ignore$-->
> </p>
> <address>
>   <!--$url-minder-ignore$-->
>   Last modified on <!--#echo var="LAST_MODIFIED"-->
>   . <!--$/url-minder-ignore$-->
>
> </address>
>
>
> Should really be:
>
> <p>The full production number starts with 011-40217. For example, the full
> production number for <em>Stairway to Heaven</em> is 011-40217-046.</p>
>
> <!--$url-minder-ignore$-->
> <p>This page downloaded on <!--#echo var="DATE_GMT"--></p>
> <!--$/url-minder-ignore$-->
>
> <address>
> <!--$url-minder-ignore$-->
> Last modified on <!--#echo var="LAST_MODIFIED"-->.
> <!--$/url-minder-ignore$-->
> </address>
>
> Maybe it was because I was missing
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
> "http://www.w3.org/TR/html4/frameset.dtd">
>
> at the top of the file (an old webpage).
>
> Either way, it screwed up where it wanted to place the </P> and by moving
> the period to the next line, it would have been rendered with a space in
> front of it.  Wrong!
>
> MB
>   

Received on Tuesday, 2 September 2008 14:37:30 UTC