RolePlay onLine RPoL Logo

, welcome to Technical Discussions

08:55, 28th March 2024 (GMT+0)

Easy Tables: Formatting Columns.

Posted by LonePaladin
LonePaladin
member, 786 posts
Creator of HeroForge
Thu 10 Jan 2019
at 05:37
  • msg #1

Easy Tables: Formatting Columns

Boy, am I out of practice -- I've been too long away to have forgotten this.

When creating an Easy Table, I know there's a trick with adding a divider line under the header. Specifically, one that tells it how to treat each column, like setting a column to be centered or right-justified.

I just can't remember how. And it's not in the Help page.
Skald
moderator, 839 posts
Whatever it is,
I'm against it
Thu 10 Jan 2019
at 13:18

Easy Tables: Formatting Columns

Like this (taken from jase's post msg#94 in link to a message in another game):

Column 1Column 2Column 3Column 4
ABCD
EFGH

| Column 1      | Column 2  | Column 3   | Column 4  |
|<40%-----------|-------25%>|-----^------|10%--------|
| A             | B         | C          | D         |
| E             | F         | G          | H         |

:>
LonePaladin
member, 787 posts
Creator of HeroForge
Thu 10 Jan 2019
at 18:44
  • msg #3

Easy Tables: Formatting Columns

Weird. I did that, using |--->| on a divider row, and the column didn't right-justify. I thought I was missing something, turns out it just wasn't working as it should have.
horus
member, 638 posts
Wayfarer of the
Western Wastes
Sat 12 Jan 2019
at 02:28
  • msg #4

Easy Tables: Formatting Columns

Lone Paladin:  could you post your code so we could get a peek?  It might be one of us might see something you've managed to miss.
LonePaladin
member, 789 posts
Creator of HeroForge
Sat 12 Jan 2019
at 03:27
  • msg #5

Easy Tables: Formatting Columns

I figured out what it was. If any of the data columns (below the header) have numbers in them, they have to have a leading space.

So a cell with |24| will mess it up, it needs to be | 24|.
horus
member, 640 posts
Wayfarer of the
Western Wastes
Thu 17 Jan 2019
at 07:48
  • msg #6

Easy Tables: Formatting Columns

Yup.  Like any other programming or scripting language, a missing delimiter can wreak havoc.  Glad it's sorted for ya.
Escribblings
member, 20 posts
Fri 8 Feb 2019
at 23:17
  • msg #7

Easy Tables: Formatting Columns

You might want to check this out re nesting tables ;)

link to a message in another game
Sign In