Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

RE: <NOBR> - Returning to the question....

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 12 Apr 2004 21:01:35 +0300 (EEST)
To: www-html@w3.org
Message-ID: <Pine.GSO.4.58.0404122057250.12561@korppi.cs.tut.fi>

On Mon, 12 Apr 2004, Ian Hickson wrote:

> If you have *blocks* of text in which the newlines are important, then it
> is preformatted text, and the <pre> element is relevant.

Maybe, but <pre> has _four_ components in its meaning:
- preserve newlines
- do not wrap
- preserve spaces
- use monospace font.

> > 	(defun foo (x, y)
> > 	   (+ x y))
> >
> > is much better than
> >
> > 	(defun foo (x, y) (+ x y))
>
> But the latter is better than
>
>        (defun foo (x,
>   y) (+x y))
>
> ...which is more likely if an inline containing the above wraps.

Yes - but _this_ is a presentational issue. The meaning of the code is not
changed if it is wrapped. My point has been that there are cases where
things are not just presentational. When dealing with spaces only, it's
just extra comfort to be able to use <nobr>...</nobr> and not lots of
no-break spaces. With _other_ characters, it's a different story. Consider
a language where an identifier can begin with "?" and an identifier must
not be broken into two lines.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/ 
Received on Monday, 12 April 2004 14:01:38 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.