[SPLIT] question about "pre" tags and leading spaces

Rules for posting and helping, along with guides for formatting and explanations of what to expect. Post "test" messages here.

[SPLIT] question about "pre" tags and leading spaces

Postby anonmeans on Sat Feb 14, 2009 9:43 pm

This post uses the "pre" tags, but doesn't have trouble with the blank-start lines: The first line that doesn't have a leading "space" doesn't have all the leading spaces removed. Is that because the "pre" section started with text, and it's only the first line that has this space-stripping problem? :?:
anonmeans
 
Posts: 48
Joined: Sat Jan 24, 2009 7:18 pm

Sponsor

Sponsor
 

Postby stapel_eliz on Sat Feb 14, 2009 10:55 pm

I hadn't noticed this, but, yes, you appear to be right. The first line of text after a "pre" tag seems to have any spaces stripped from it. But if you put a label or something in that first line, the other lines can have leading spaces, and the forced spacing will be preserved.

Thank you! :D
User avatar
stapel_eliz
 
Posts: 1783
Joined: Mon Dec 08, 2008 4:22 pm


Return to Forum Rules & Guides

cron