W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: A printable pre

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 16 Apr 2008 09:24:57 -0500
Message-ID: <48060C39.3060105@mit.edu>
To: "Anas R." <anas.linuxfuture@gmail.com>
CC: w3c_css <www-style@w3.org>

Anas R. wrote:
> When you want to print it you'll have 2 choices:
> - Either activating ward-wrap (using white-space: normal), then you'll lose ASCII-line-breaks and tabs.
> - or you'll keep line-breaks and tabs, then you'll lose the rest of the line!

Or the third choice: "white-space: pre-wrap".  See 
http://www.w3.org/TR/CSS21/text.html#white-space-prop

-Boris
Received on Wednesday, 16 April 2008 14:25:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:05 GMT