Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: White Space in HTML - September 09, 1998 at 15:21:13

You are here: irt.org | BBS | Re: White Space in HTML [This BBS is closed]

Posted by Jason Nugent on September 09, 1998 at 15:21:13:

In Reply to: White Space in HTML posted by Jian Zhang on September 09, 1998 at 14:05:09:

: Hi,

: When I send each line read from a plain
: text file in the <html>..</html> region,
: all the leading white-spaces are chopped
: off. Does anyone kown how to preserve them
: in the html? And how about set one (1)
: tab space to 2 spaces?

: Thanks in advance.

: Jian Zhang
: San Jose

It is in the specification to collapse all whitespace. Tabs, carriage returns and multiple spaces all get compressed to a single space. To place white space in your document, you either need to use one of the special tags that allows white space ( the CODE tag, for instance), or, if you want to preserve your fonts, use the   character which inserts a non-breaking space that won't collapse.

Jason
Follow-ups:

You are here: irt.org | BBS | Re: White Space in HTML [This BBS is closed]

©2018 Martin Webb