|
Posted by Jukka K. Korpela on 05/10/06 09:48
"Tony Watts" <tonywatts977@tiscali.co.uk> wrote:
> Wouldn't the tag <pre></pre> allow the preservation of preformatted text's
> spaces and line breaks?
It would. But that's not what was asked.
> IS there any reason that would not be appropriate
> here, other than potentially getting into lazy habits?
Yes. It's a block level element, implies monospace font, and preserves all
whitespace.
Regarding the original question, there are several possibilities, and the
best choice depends on the context, which was not disclosed. If you know how
to author in ISO 8859-1 (you should), you can simply use the no-break space
character (U+00A0), entered in some program-dependent way (e.g., Alt-160),
though then the problem is that you (or someone else reading your source)
cannot tell normal spaces from no-break spaces.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Navigation:
[Reply to this message]
|