Use tabs for table separator

\t is the default seperator
master
Ivan Tham 7 years ago committed by Drew DeVault
parent e75396b8d3
commit da6ddfe08b
  1. 12
      src/main.c

@ -425,21 +425,15 @@ commit_table:
roff_macro(p, "TS", NULL);
const char *_style = NULL;
switch (style) {
case '[':
_style = "allbox ";
break;
case '|':
_style = "";
fprintf(p->output, "allbox;");
break;
case ']':
_style = "box ";
fprintf(p->output, "box;");
break;
}
fprintf(p->output, "%s tab(:);\n", _style);
// Print alignments first
currow = table;
while (currow) {
@ -462,7 +456,7 @@ commit_table:
parser_pushstr(p, curcell->contents->str);
parse_text(p);
if (curcell->next) {
fprintf(p->output, "\nT}:T{\n");
fprintf(p->output, "\nT}\tT{\n");
} else {
fprintf(p->output, "\nT}");
}

Loading…
Cancel
Save