summaryrefslogtreecommitdiff
path: root/lib/termtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/termtable.c')
-rw-r--r--lib/termtable.c88
1 files changed, 50 insertions, 38 deletions
diff --git a/lib/termtable.c b/lib/termtable.c
index f7aec43118..ba85962cc9 100644
--- a/lib/termtable.c
+++ b/lib/termtable.c
@@ -31,48 +31,60 @@ struct ttable_style ttable_styles[] = {
.corner = '+',
.rownums_on = false,
.indent = 1,
- .border.top = '-',
- .border.bottom = '-',
- .border.left = '|',
- .border.right = '|',
- .border.top_on = true,
- .border.bottom_on = true,
- .border.left_on = true,
- .border.right_on = true,
- .cell.lpad = 1,
- .cell.rpad = 1,
- .cell.align = LEFT,
- .cell.border.bottom = '-',
- .cell.border.bottom_on = true,
- .cell.border.top = '-',
- .cell.border.top_on = false,
- .cell.border.right = '|',
- .cell.border.right_on = true,
- .cell.border.left = '|',
- .cell.border.left_on = false,
+ .border = {
+ .top = '-',
+ .bottom = '-',
+ .left = '|',
+ .right = '|',
+ .top_on = true,
+ .bottom_on = true,
+ .left_on = true,
+ .right_on = true,
+ },
+ .cell = {
+ .lpad = 1,
+ .rpad = 1,
+ .align = LEFT,
+ .border = {
+ .bottom = '-',
+ .bottom_on = true,
+ .top = '-',
+ .top_on = false,
+ .right = '|',
+ .right_on = true,
+ .left = '|',
+ .left_on = false,
+ },
+ },
}, { // blank, suitable for plaintext alignment
.corner = ' ',
.rownums_on = false,
.indent = 1,
- .border.top = ' ',
- .border.bottom = ' ',
- .border.left = ' ',
- .border.right = ' ',
- .border.top_on = false,
- .border.bottom_on = false,
- .border.left_on = false,
- .border.right_on = false,
- .cell.lpad = 0,
- .cell.rpad = 3,
- .cell.align = LEFT,
- .cell.border.bottom = ' ',
- .cell.border.bottom_on = false,
- .cell.border.top = ' ',
- .cell.border.top_on = false,
- .cell.border.right = ' ',
- .cell.border.right_on = false,
- .cell.border.left = ' ',
- .cell.border.left_on = false,
+ .border = {
+ .top = ' ',
+ .bottom = ' ',
+ .left = ' ',
+ .right = ' ',
+ .top_on = false,
+ .bottom_on = false,
+ .left_on = false,
+ .right_on = false,
+ },
+ .cell = {
+ .lpad = 0,
+ .rpad = 3,
+ .align = LEFT,
+ .border = {
+ .bottom = ' ',
+ .bottom_on = false,
+ .top = ' ',
+ .top_on = false,
+ .right = ' ',
+ .right_on = false,
+ .left = ' ',
+ .left_on = false,
+ },
+ }
}
};
/* clang-format on */