diff options
author | andmarti1424 <scim.spreadsheet@gmail.com> | 2016-04-17 14:39:07 -0300 |
---|---|---|
committer | andmarti1424 <scim.spreadsheet@gmail.com> | 2016-04-17 14:39:07 -0300 |
commit | a8b42f0ba3d39e43d899eac5432ce29a4818d2e5 (patch) | |
tree | f8a800b27baddc1c119e5d043e2bfd98c85f6c4d | |
parent | bbcf31c48d67b4d768eb229626ca0cd4e93ec358 (diff) |
padding now is saved for each cell and not just a column
-rwxr-xr-x | src/file.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -256,13 +256,6 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) { if (row_hidden[r]) (void) fprintf(f, "hide %d\n", r); - // padding - for (c = c0; c <= cn; c++) { - pp = ATBL(tbl, 0, c); - if (*pp && (*pp)->pad) - (void) fprintf(f, "pad %d %s\n", (*pp)->pad, coltoa(c)); - } - //write_ranges(f); write_marks(f); @@ -357,6 +350,9 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) { (void) fprintf(f, "addnote %s ", v_name((*pp)->row, (*pp)->col)); (void) fprintf(f, "%s\n", r_name((*pp)->nrow, (*pp)->ncol, (*pp)->nlastrow, (*pp)->nlastcol)); }*/ + // padding + if ((*pp)->pad) + (void) fprintf(f, "pad %d %s%d\n", (*pp)->pad, coltoa((*pp)->col), (*pp)->row); } } |