![]() |
Spaces in posts - post formatting
I have found a problem with Spaces when posting..
How can we make all text preserve multiple spaces (code and highlight tags currently do this)? ex.: 1 21 321 4321 54321 Code:
1 Any ideas on how to fix this? Thanks. |
I think you need the text to be inside <pre> ... </pre> tags to preserve spaces. There may also be a CSS way to do this, I'm not sure.
|
1 21 321 4321 54321 [pre] 1 21 321 4321 54321 [/pre] I have tried noparse and pre tags. No luck. It's a shame this can't be default. |
It's the way html works, not a problem with vb. All white space is combined into one space unless it's in a <pre> tag (and I mean the html tag, not a bbcode like [pre]). You could probably make it the default by editing the postbit template and putting the post message inside <pre> ... </pre> tags, but I'm not sure what the result would look like.
If you just want the ability to use bbcode to preserve spaces for certain text, you could define your own [pre] tag using <pre>{param}</pre> as the replacment. |
All times are GMT. The time now is 04:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|