Re: Spacing (was IMG in PRE?)

Drazen Kacar (dave@fly.cc.fer.hr)
Wed, 15 May 1996 02:38:44 +0200 (MET DST)


From: Drazen Kacar <dave@fly.cc.fer.hr>
Message-Id: <199605150038.CAA05258@fly.cc.fer.hr>
Subject: Re: Spacing (was IMG in PRE?)
To: boo@best.com (Walter Ian Kaye)
Date: Wed, 15 May 1996 02:38:44 +0200 (MET DST)
Cc: www-html@w3.org
In-Reply-To: <v02140b1cadbe94b15e53@[205.149.180.135]> from Walter Ian Kaye at "May 14, 96 01:03:13 pm"

Walter Ian Kaye wrote:
> 
> One thing we definitely need, at least for representing computer source
> code, is the ability to prevent collapsing multiple spaces. If I need to
> display a literal of "qd  " (4 characters, spaces significant), it must
> NOT get munged by the browser. What I have to do currently is place a
> comment next to it, stating that there are two spaces there. I tried
> using <pre> and <tt> and <code> -- none were satisfactory (<tt> and
> <code> did not prevent collapsing, and <pre> added line breaks and was
> therefore unusable inline).
> 
You can use <code> with &nbsp; and have something like this:

<code>
IF expr THEN<br>
&nbsp;&nbsp;&nbsp;statement<br>
ELSE<br>
&nbsp;&nbsp;&nbsp;statement<br>
ENDIF
</code>

--
Life is a sexually transmitted disease.

dave@fly.cc.fer.hr
dave@zemris.fer.hr