[Doc-SIG] Documentation markup & processing / PEPs
Peter Funk
pf@artcom-gmbh.de
Sat, 16 Jun 2001 20:13:19 +0200 (MEST)
Hi,
David:
> > MS IE 5.0 on MacOS 8.6 reduced all contiguous whitespace within TT tags to a
> > single spaces. Ditto for Netscape Communicator 4.7. Is there another inline
> > HTML tag which *preserves* runs of whitespace?
Guido van Rossum:
> I think this is how HTML is specified, for better or for worse. Most
> tools that require preservation of whitespace generate if there
> are multiple spaces, although it's not always clear to me if it's
> better to generate " " or " ".
May be I've missed the point, but was wrong with the <PRE> tag? For example:
<dl><dd><pre class="verbatim">
def run(server_class=BaseHTTPServer.HTTPServer,
handler_class=BaseHTTPServer.BaseHTTPRequestHandler):
server_address = ('', 8000)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
</pre></dl>
(Cut'n'paste from the Python library reference as displayed by KDE KFM)
If a Browser (MS IE 5.0) would display this, it is definitely broken.
Regards, Peter
--
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen, Germany)