W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2010

Amaya Treatment of CR/LF

From: Bill Braun <bbraun@hlthsys.com>
Date: Wed, 27 Jan 2010 11:24:53 -0500
Message-ID: <4B6068D5.6050201@hlthsys.com>
To: "[list-email] W3 Amaya" <www-amaya@w3.org>
I have had occasion to do a lot of cut/copy > paste in the last few 
days. The results after paste have been erratic. I am suspicious of the 
manner in which Amaya uses carriage returns (CR) and line feeds (LF).

Example::

First document markup is:

<div id="first document">

    <ul>
        <li>blah blah blah</li>
        <li>blah blah blah</li>
        <li>blah blah blah</li>
        <li>blah blah blah</li>
     </ul>

</div>

Second document markup is:

<div id="second document">

    <ul>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
     </ul>

</div>

 From the second document copy all characters between the pipes:

<div id="second document">

    <ul>
|        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>|
     </ul>

</div>

And paste over the same lines in the first document.

<div id="first document">

    <ul>
|        <li>blah blah blah</li>
        <li>blah blah blah</li>
        <li>blah blah blah</li>
        <li>blah blah blah</li>|
     </ul>

</div>

The results vary from document to document. Some of the observed results 
have been:

<div id="first document">
    <ul>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
     </ul>

</div>

- - - -

<div id="first document">
    <ul>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>


     </ul>

</div>

- - - - -

<div id="first document">
    <ul>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
     </ul>



</div>

- - - - -

<div id="first document">    <ul>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>
        <li>mumble mumble mumble</li>     </ul>



</div>

- - - -

My guess is that Amaya does not consistently write CR and LF the same 
way, and since they are different in each document (and perhaps 
different in multiple places within the same document), cut/copy > paste 
produces erratic behavior.

Regards,

Bill Braun
Received on Wednesday, 27 January 2010 16:25:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:42 UTC