>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
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
Can anybody illuminate ?
Rohan
--
____oo_ ___ _ _ _ _ _
/.. __ || _ \___| |_ __ _ _ _ | |_| |__ ___ __ _| |_| |_ ___ _ _ _ _ ___
|_/\_/ | || / _ \ ' \/ _` | ' \ | _ / _` \ V V / _| ' \/ _ \ '_| ' \/ -_)
| | / / |_|_\___/_||_\__,_|_||_| |_| |_\__,_|\_/\_/ \__|_||_\___/_| |_||_\___|
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