How to keep repeating spaces? (General)

by Alise, Wednesday, August 24, 2011, 08:17 (4652 days ago)

Hi, I would like to post tables in my forum. They uses spaces to keep the columns aligned. My little forum converts multiple spaces into one.

E.g. this is how a table looks like when pasted into mlf:


D Time N Max Min Mu StDev Z PstUp
0 1000 1151 36.75 -33.50 -0.14 4.67 -1.01 46.57
0 1100 1151 40.75 -41.50 -0.06 7.33 -0.29 50.91

How to keep repeating spaces?

by Alise, Wednesday, August 24, 2011, 08:22 (4652 days ago) @ Alise

Also: The font when composing a message has the same width for all characters. When a message is displayed, another font is used (I'm sure the programmers here now what I mean)

I would like the tho lines below to be equally wide:
iii
www

How to keep repeating spaces?

by alise, Wednesday, August 24, 2011, 08:42 (4652 days ago) @ Alise

I guess the two things I ask for:

1) How can I change the font type (eg into Consolas) ?
2) How can I disable the forum's merging of consecutive spaces into into just a single space?

Avatar

How to keep repeating spaces?

by Auge ⌂, Wednesday, August 24, 2011, 11:12 (4652 days ago) @ alise

I guess the two things I ask for:

1) How can I change the font type (eg into Consolas) ?

You can change the font in the CSS file (style.min.css). Search for the rules of div.posting and set a rule for the font property (font: monospace;). If the headline (title of the posting) and the authors info should be displayed with "normal" font, set the correct font type for div.posting h1 and div.posting p.author.

2) How can I disable the forum's merging of consecutive spaces into into just a single space?

That's a feature of HTML. You can use the bb-code codeblock to generate a table.

--------------------
| id | description |
--------------------
|  1 | one         |
|  2 | two         |
| .. | ...         |
| 11 | eleven      |
--------------------

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Avatar

How to keep repeating spaces?

by Micha ⌂, Wednesday, August 24, 2011, 11:18 (4652 days ago) @ Auge

Hi,

That's a feature of HTML. You can use the bb-code codeblock to generate a table.

or use the (not shown) BB-Code [PRE] [/PRE] e.g.


--------------------
| id | description |
--------------------
|  1 | one         |
|  2 | two         |
| .. | ...         |
| 11 | eleven      |
--------------------



regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

How to keep repeating spaces?

by Alise, Wednesday, August 24, 2011, 11:37 (4652 days ago) @ Micha

TEST

D    Time       N     Max     Min      Mu   StDev       Z   PstUp
0    1000    1151   36.75  -33.50   -0.14    4.67   -1.01   46.57
0    1100    1151   40.75  -41.50   -0.06    7.33   -0.29   50.91

How to keep repeating spaces?

by Alise, Wednesday, August 24, 2011, 11:51 (4652 days ago) @ Alise

It works!!! :-)

Thanks a million guys for helping me out with this and the SQL call!!!

RSS Feed of thread