W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2006

Re: preformatted text not handled properly

From: Wolfgang Jeltsch <wolfgang@jeltsch.net>
Date: Wed, 28 Jun 2006 21:10:00 +0200
To: www-amaya@w3.org
Message-Id: <200606282110.00460.wolfgang@jeltsch.net>

Am Freitag, 23. Juni 2006 15:18 schrieb Irene Vatton:
> On Wednesday 21 June 2006 23:43, Wolfgang Jeltsch wrote:
> > Hello,
> >
> > the document on
> >
> >     http://www.badgers-in-foil.co.uk/projects/docbook-css/cvsspam-doc.xml
> >
> > is a DocBook document which uses some cool CSS stylesheet for DocBook.
> > However, when displayed in Amaya, one can see that Amaya doesn't seem to
> > handle preformatted text as such.  The document is correctly displayed in
> > Mozilla Firefox 1.0.4.
> It would be managed correctly if XML elements have a XML attribute
> xml-space="preserve". The preserve constraint concerns the document contents
> (spaces should be still preserved when the document is saved after an edit).
> CSS concerns only its current presentation.

Thank you for pointing this out.  However, I experienced that Amaya killed all 
newlines in preformatted text upon saving the file.  To reproduce this, 
please first create a file with the following content (preferably without the 
linebreaks and the indentation in the processing instruction):

	<?xml version="1.0"?>

Then open this file in Amaya.  Now create a programlisting element.*)  Set 
xml:space to preserve.  Enter some text containing line breaks.  If you save 
the file, you can see that they don't occur in the file.

> [...]

Best wishes,
*) In order to do this, you probably first have to enter some character and 
delete it afterwards since Amaya seems to be unable to create an element 
otherwise.  This should maybe be changed.  In addition, it would be good if 
the element types would appear strictly alphabetically ordered in the XML 
Element type widget.
Received on Wednesday, 28 June 2006 19:10:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:51 UTC