delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/09/07:46:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <40EE8619.F21410B0@dessent.net>
Date: Fri, 09 Jul 2004 04:48:41 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Wrapping long lines (Was Re: FAQ update suggestion for "I'm having basic problems with find. Why?")
References: <010701c464f4$398e2030$4e6510ac AT ds DOT tao DOT co DOT uk> <Pine DOT GSO DOT 4 DOT 58 DOT 0407081027371 DOT 11665 AT slinky DOT cs DOT nyu DOT edu> <013301c464fe$e2e425d0$4e6510ac AT ds DOT tao DOT co DOT uk> <Pine DOT GSO DOT 4 DOT 58 DOT 0407081124080 DOT 11665 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT CYG DOT 4 DOT 58 DOT 0407081405270 DOT 1032 AT edocomputer> <Pine DOT GSO DOT 4 DOT 58 DOT 0407081549530 DOT 2377 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT CYG DOT 4 DOT 58 DOT 0407081504350 DOT 1032 AT edocomputer> <40EDEF6B DOT A5A5F06 AT dessent DOT net> <004701c46597$e9040b80$4e6510ac AT ds DOT tao DOT co DOT uk> <40EE7656 DOT 909036FE AT dessent DOT net> <010301c465a8$147e0210$4e6510ac AT ds DOT tao DOT co DOT uk>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

William Blunn wrote:

> > That's the whole point of PRE, that it *doesn't* wrap.
> 
> I don't think that is the whole point of PRE.
> 
> I think the whole point of PRE is that newlines and other whitespace in
> the HTML source are interpreted literally.
> 
> It appears that the design committee took it a step too far and decided
> that newlines in the rendered version of PRE can ONLY appear as a result
> of newlines in the source.
> 
> This is counter to the normal behaviour nearly everywhere else in which
> text wraps when it hits the edge of the medium.

Sometimes you want to express that something is all on one line. 
Perhaps it's a command, or the ouput of a command.  I'm sure there's
other instances that come up every now and then.  If PRE were to wrap at
the screen margin there'd be no way to do this.  The way I see it the
PRE tag is for saying to the browser, "Hands off.  This text has already
been formatted how I want it and is to appear exactly as follows, and if
that means the screen must scroll if it's too narrow then so be it."  If
it is used inappropriately (such as in the case of the list archives)
and it causes awkward scrolling, then that's really the fault of the
page design or the program that generated it, not of the tag.  If you
want the browser to wrap the text then it's not really preformatted
anymore.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019