[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.
Posts: 69
Joined: Sat Jan 24, 2009 7:18 pm

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

Postby anonmeans » 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? :?:

User avatar
Posts: 1738
Joined: Mon Dec 08, 2008 4:22 pm

Postby stapel_eliz » 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

Return to “Forum Rules & Guides”