Solved &nbsp in forum?

Snurg

Daemon

Reaction score: 588
Messages: 1,349

Is there any way to write a non-breaking space in the forums?
This would be nice for tables, so that entries containing spaces are not broken badly, resulting in an ugly, hard-to-read table.

Any idea whether this can be done?
 
OP
Snurg

Snurg

Daemon

Reaction score: 588
Messages: 1,349

Not tested yet, but Unicode can help here too.
If this doesn't work, I'll just use the small space dot which former word processor users know well, and which got out of fashion somehow.
 

memreflect

Active Member

Reaction score: 178
Messages: 210

It seems the forums strip non-breaking space characters, like many other sites.

I use [code] ... [/code] blocks for tables:
Code:
        Sample output from `w3m -dump -O us-ascii -cols 80 ./.foo.html`
+-----------------------------------------------------------------------------+
|multi-word table |hello|oh                                                   |
|cell             |     |                                                     |
|-----------------+-----+-----------------------------------------------------|
|                 |     |the two cells to the left are empty and this cell is |
|                 |     |really long                                          |
+-----------------------------------------------------------------------------+
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,604
Messages: 37,927

There are bbcodes for creating traditional HTML tables too. They work exactly the same:
Code:
[table]
[tr][th]column1[/th][th]column2[/th][/tr]
[tr][td]a[/td][td]b[/td][/tr]
[/table]
produces:
column1column2
ab

But using [code] might be fine too, it depends on what you want to present. [code] uses a mono-spaced font, so things line up better. And it's easier to copy/paste from.
 
OP
Snurg

Snurg

Daemon

Reaction score: 588
Messages: 1,349

It seems the forums strip non-breaking space characters, like many other sites.
Yes, it strips/converts these Unicode non-breaking-space chars :(
You are right!

But luckily it respects the middle dot.
The purpose why I asked was to avoid breaking the market names in the table here.
With the middle dot it looks a bit unusual, but way better if broken :)
 
Top