PDA

View Full Version : Table Formatting Issue



tonberrian
2011-03-28, 10:10 AM
I'm trying to format a table so that both the first and last columns of the table are aligned to the right. However, when I try to post this (without the spaces in the [/ right], because the board "corrects" it even then):

{table=head]Level|Feature|Craft Reserve
[RIGHT]21[/ RIGHT]||[RIGHT]7000[/ RIGHT]
[RIGHT]22[/ RIGHT]||[RIGHT]9000[/ RIGHT]
[RIGHT]23[/ RIGHT]|Bonus Feat|[RIGHT]12000[/ RIGHT][/table]

It comes out as:

{table=head]Level|Feature|Craft Reserve

21||
7000
22||
9000
23|Bonus Feat|
12000[/table]

Which is because the board "corrects" the code to:

{table=head]Level|Feature|Craft Reserve

21||
7000
22||
9000
23|Bonus Feat|
12000[/table]

Now, I understand that the tables were something that was bolted onto the existing code of the boards, so I'm not too hopeful about any sort of code change.

Edit: Huh. I didn't expect it to "correct" it inside a [noparse]. That's rather frustrating. It's also doing wierd things to the capitalization of the RIGHTs, too.

happyturtle
2011-03-28, 11:43 AM
You need to add a | to the end of each line.

Fixed table:

{table=head]Level|Feature|Craft Reserve

21||
7000|

22||
9000|

23|Bonus Feat|
12000[/table]

{table=head]Level|Feature|Craft Reserve

21||
7000|

22||
9000|

23|Bonus Feat|
12000[/table]

tonberrian
2011-03-28, 12:24 PM
*mutter mutter*

So I guess that's it then. Thanks.

Mulletmanalive
2011-04-26, 03:02 PM
I've been having a similar problem. Turns out, putting a space at the end of each entry also helps this problem.

Siosilvar
2011-04-26, 05:05 PM
Any character will do. The parser doesn't distinguish between table cells and new lines anywhere else. For example,


Text
here

and


Text

here

will come out the same. In fact, the parser auto-corrects the second to the first. EDIT: Even in a noparse statement! Fix'd.


Text
here

Text
here