W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2000

Re: a handy XML/XHTML line-breaking algorithm

From: Irene VATTON <Irene.Vatton@inrialpes.fr>
Date: Mon, 21 Aug 2000 18:38:28 +0200
Message-Id: <200008211638.SAA08033@tahiti.inrialpes.fr>
To: Dan Connolly <connolly@w3.org>
cc: www-amaya@w3.org, html-tidy@w3.org, Arjun Ray <aray@q2.net>, swick@w3.org, ij@w3.org

It seems a good idea to coordinate the management of line breaks in our 
different tools.

> I use tidy and Amaya to manage XHTML documents. A major
> annoyance is that they break lines differently, introducing
> a lot of noise in my CVS/RCS history.
> 
> A while back, we got some feedback on the XML c14n spec,
> proposing an alternative line-breaking algorithm:
> 
> "In [...] significantly enhancing the utility of line-oriented text
> processing tools in dealing with canonicalized documents, I believe
> this alternative is worth considering."
> 	-- Comments on the WD - A proposed alternative
> 	Arjun Ray (Sun, Feb 20 2000) 
> http://lists.w3.org/Archives/Public/www-xml-canonicalization-comments/2000Feb/0005.html
> 
> Basically, you break lines between <tag-name and >,
> and after each attribute, and line breaks in character
> data get escaped (&#10;).
> 
> I have written it up in some detail; please see:
> 
> 	A Handy Line-breaking Algorithm for XML (esp XHTML)
> 	http://www.w3.org/2000/08/lb2/
> 	$Revision: 1.10 $ of $Date: 2000/08/08 17:25:41 $
> 
> -- 
> Dan Connolly, W3C http://www.w3.org/People/Connolly/
> 

-- 
     Irene.
Received on Monday, 21 August 2000 12:38:56 UTC

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