Is There a Way to Make BBCODE Display a Blank Space?

User avatar
BobH
UraniumLounger
Posts: 9745
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Is There a Way to Make BBCODE Display a Blank Space?

Post by BobH »

I've discovered (or rediscovered - it's an age thing; most of you wouldn't understand :sad: ) that bbcode will allow a space between words but doesn't allow the insertion of blank spaces. I've run searches trying to find a tag or some way to do so, but hve come up empty. It might be that I don't know how to phrase a seach argument.

Am I trying to do the impossible?
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

User avatar
HansV
Administrator
Posts: 80207
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by HansV »

It's a general property of HTML that multiple spaces are ignored.

The "tab" tags [tab][/tab] insert 4 non-breaking spaces into the text:
Eileen's[tab][/tab]Lounge becomes Eileen's    Lounge when posted.
x882.png
Text between [code] and [/code] tags is rendered in a fixed-width font, with spacing as entered:

Code: Select all

One One
  Two  Two
    Three   Three
      Four    Four
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
BobH
UraniumLounger
Posts: 9745
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by BobH »

Thanks, Hans.

I can understand why HTML might strip consecutive spaces but i'm surprised to learn that no way exists to control that behavior with a tag. But, then, I'm not as quick as I once was even if you give me enough time. :hairout:
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

User avatar
Bigaldoc
PlatinumLounger
Posts: 3757
Joined: 24 Jan 2010, 11:00
Location: Lexington, KY, USA

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by Bigaldoc »

And I'm not entirely sure it's just HTML because I've seen other applications that don't allow multiple spaces.

I have a tab hotkey setup         so I can         insert extra spaces in         Lounge posts when I desire to do so.

User avatar
BobH
UraniumLounger
Posts: 9745
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by BobH »

Thanks.

I put some tabs in my signature ASCII art.
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

tab⠀space⠀answer
NewLounger
Posts: 1
Joined: 01 Mar 2025, 01:38

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by tab⠀space⠀answer »

since this site has the best SEO for the query, "tab space BBcode," I have created this account. Not all BBcode renderers support the [\tab][/tab] syntax. I copy/paste 3 "Braille blank pattern1"s into the beginning of my paragraph, and since browsers do not recognize it as whitespace, it looks like a tabspace. the only disadvantage is screen-reader accessibility.

1 comparts .com/en/unicode/U+2800

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 16919
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Is There a Way to Make BBCODE Display a Blank Space?

Post by ChrisGreaves »

tab⠀space⠀answer wrote:
01 Mar 2025, 01:53
Not all BBcode renderers support the [\tab][/tab] syntax. I copy/paste 3 "Braille blank pattern1"s into the beginning of my paragraph, and since browsers do not recognize it as whitespace, it looks like a tabspace. the only disadvantage is screen-reader accessibility.
Hello tab⠀space⠀answer (what was wrong with "SpaceCadet"?) and may I be the first to welcome you. :grin:
I have a mild interest in computing for blind people that goes back about thirty years.
That said, I am fully-sighted - as much as a 78-year old book-reader can be.

Spacing in web pages is a problem for sighted people too. I now live in a remote settlement and more than ever rely on on-line shopping sites. Far too many web pages act in a confusing manner with spaces. One example: Canadian postal codes take the form

Code: Select all

<letter><digit><letter><space><digit><letter><digit>
My postal code is "A0C 1B0"
But online sites will often either
(a) Ignore my space and tell me that "A0C1B" is not a valid postal code or
(b) Insist that I enter the data as "A0C1B0" or
(c) lodge some other objection.

Ordering stuff online becomes a game between me and the web site as to how to get a valid postal code onto the order form.
Cheers, Chris
Never panic in a room that holds a computer.