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

sometimes <pre> does not break lines in W2K

From: Juan Lanus <jlanus@netscape.net>
Date: Mon, 14 Mar 2005 16:41:04 -0300
To: www-amaya@w3.org
Message-ID: <d14p71$8f3$1@sea.gmane.org>

Hi,
In 8.7.3 or previous Amayas on W2K try:
new XHTML document
accept default name "new"
open source view
paste this:
<pre>// Add a new table element and define the name
config.addProperty("tables.table(-1).name", "versions");

// Add a new field to the new table

// (an index for the table is not necessary because the latest is used)
config.addProperty("tables.table.fields.field(-1).name", "id");
config.addProperty("tables.table.fields.field.type", "int");

// Add another field to the new table
config.addProperty("tables.table.fields.field(-1).name", "date");
config.addProperty("tables.table.fields.field.type", "java.sql.Date");
...</pre>
menu: file > synchronize
In the formatted view I see 2 or 3 text lines instead of 13.
Also, I can't add CRs, have to go to the source view.
In all the behaviour is erratic and annoying.
It might not fail when you test is because the mailer might hace fixed 
the text. Please get the original from:
http://jakarta.apache.org/commons/configuration/howto_xml.html
from a frame before the last blue header.

I suspect that the problem is that the original text comes with CRs or 
LFs only instead of the Windows CRLF format.
In fact, this happens many times when I paste in Amaya.
It also happens if I do the regular ^H^P^V to set a pre tag and paste: 
sometimes all the (copied from web pages) text appears in one long line.
If I paste into vim 2*P then copy from vim gg"*dG and paste back into 
Amaya ^H^P^V the text appears perfectly formatted. La soupe aux shortcuts!
Saludos!
--
Juan Lanus
TECNOSOL
Argentina
Received on Monday, 14 March 2005 20:13:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:43 UTC