16 May, 2016, arholly wrote in the 1st comment:
Votes: 0
Ok, so I'm trying to use the append to cell feature in order to do some looping and it ends up looking like this:
+__________________________________________________________________________+
| + |
| Backgrounds + Influences |
| Allies : 0 + |
| Contacts : 0 + |
| Herd : 3 + |
| Mentor : 0 + |
| Resources : 1 + |
| Retainers : 0 + |
| + |
| + |
+————————————————————————–+

The lines for allies, contacts, etc… all seem to be not pushing the border out far enough, causing table alignment issues. Any thoughts on what I'm doing wrong? Thanks in advance

Here is the code:
grid = create_grid(75);
row = create_row(grid);
cell = row_append_cell(row, 35, "\tGBackgrounds\tn\n\r");
i = 0;
for(num=0;background_table[num].name;num++)
{
if(background_table[num].settable)
{
if(num < MAX_BACKGROUND)
{
cell_append_contents(cell, "%-11s:%3d\n\r", background_table[num].name, ch->backgrounds[num]);
i++;
}
}
}
row_append_cell(row, 40, "Influences");

grid_to_char (grid, user, TRUE );
0.0/1