cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Another attempt at wrapping code lines
Date Fri, 14 Nov 2003 15:56:55 GMT
Hi all,

I looked at David's "text-wrap" sample and added another attempt: every 
sequence of two consecutive spaces is replaced by a non-breaking space 
and a regular space.

This keeps the text indentation that would be obtained with a <pre> 
while still allowing line wrapping.

I tried to find a CSS trick to add a mark at the beginning of a 
continuation line, but CSS only has ":first-line" and no ":other-lines".

Please have a look at it, it seems to be to be a good compromise between 
keeping code indentation and readability of wrapped lines.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -

View raw message