Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

<per width=n>Does this work?</pre>

0 views
Skip to first unread message

Alexsander Totic

unread,
Feb 11, 1994, 3:18:37 AM2/11/94
to
ro...@nutmeg.ntu.edu.au (R ecto r9h Hawthorne) writes:

>Does anybody know what the 'width = <numeric>' in a '<pre>' call is
>supposed to do ? I presumed it was supposed to word wrap all the text
>between the two ( <pre> & </pre> ) markers to the set width, but when I
>try to use it on Xmosaic v2.2 for X11, it seems to do nothing at all.

>Can anybody illuminate ?

Sure. Mosaic used to wrap lines at 80 characters by default, as suggested in
the specs, but many people complained, so now <PRE> text is not wrapped
automatically at all, it must be broken with CRs. I do not remember ever
supporting the WIDTH attribute, since it is not very high on our list of
demands.

Aleks

Peter Flynn

unread,
Feb 11, 1994, 7:00:40 AM2/11/94
to
In article m...@pellew.ntu.edu.au, ro...@nutmeg.ntu.edu.au (R ecto r9h Hawthorne) writes:
>Does anybody know what the 'width = <numeric>' in a '<pre>' call is
>supposed to do ? I presumed it was supposed to word wrap all the text
>between the two ( <pre> & </pre> ) markers to the set width, but when I
>try to use it on Xmosaic v2.2 for X11, it seems to do nothing at all.

I don't think anyone has ever implemented it. I assume it was intended
to specify the character width of the line as you suggest, or perhaps
the fixed-width of the characters themselves (eg 10pt).

///Peter

R ecto r9h Hawthorne

unread,
Feb 11, 1994, 5:19:26 PM2/11/94
to
Does anybody know what the 'width = <numeric>' in a '<pre>' call is
supposed to do ? I presumed it was supposed to word wrap all the text
between the two ( <pre> & </pre> ) markers to the set width, but when I
try to use it on Xmosaic v2.2 for X11, it seems to do nothing at all.

Can anybody illuminate ?

Rohan

--
____oo_ ___ _ _ _ _ _
/.. __ || _ \___| |_ __ _ _ _ | |_| |__ ___ __ _| |_| |_ ___ _ _ _ _ ___
|_/\_/ | || / _ \ ' \/ _` | ' \ | _ / _` \ V V / _| ' \/ _ \ '_| ' \/ -_)
| | / / |_|_\___/_||_\__,_|_||_| |_| |_\__,_|\_/\_/ \__|_||_\___/_| |_||_\___|

P Damian Cugley

unread,
Feb 15, 1994, 8:00:32 AM2/15/94
to
In article <2jh09e$m...@pellew.ntu.edu.au>

ro...@nutmeg.ntu.edu.au (R ecto r9h Hawthorne) writes:
> Does anybody know what the 'width = <numeric>' in a '<pre>' call is
> supposed to do ? I presumed it was supposed to word wrap all the text
> between the two ( <pre> & </pre> ) markers to the set width, but when I
> try to use it on Xmosaic v2.2 for X11, it seems to do nothing at all.

My understanding is as follows: It is a hint to the rendering program,
telling it how wide the text is. The browser can then choose a
smaller font to display listings that are (say) 132 columns wide.
Before the WIDTH attribute was added to HTML, different element namesd
were used to suggest different widths -- this is now obselete.

Text in PRE elements is assumed to be preformatted, so would never be
word-wrapped.

Damian

0 new messages