commit da6ddfe08b259e0be0f2ca41026699b72f744eb6
parent e75396b8d36066339978f50aa76637a630c3e09a
Author: Ivan Tham <pickfire@riseup.net>
Date: Thu, 17 May 2018 01:21:01 +0800
Use tabs for table separator
\t is the default seperator
Diffstat:
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/main.c b/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}");
}