--- /dev/null
+TBL-DATA-BLOCK_WIDTH(1) General Commands Manual TBL-DATA-BLOCK_WIDTH(1)
+
+N\bNA\bAM\bME\bE
+ t\btb\bbl\bl-\b-d\bda\bat\bta\ba-\b-b\bbl\blo\boc\bck\bk_\b_w\bwi\bid\bdt\bth\bh - default width of text blocks
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+ one column:
+ +----------------------------------------+
+ |1234567890123456789012345678901234567 9 |
+ +----------------------------------------+
+ |1234567890123456789012345678901234567 |
+ |90 |
+ +----------------------------------------+
+ two columns:
+ +--+----------------------------+
+ |a | 123456789012345678901234 6 |
+ +--+----------------------------+
+ |a | 123456789012345678901234 |
+ | | 67 |
+ +--+----------------------------+
+ three columns:
+ +--+---+---------------------+
+ |a | b | 12345678901234567 9 |
+ +--+---+---------------------+
+ |a | b | 12345678901234567 |
+ | | | 90 |
+ +--+---+---------------------+
+ four columns:
+ +--+---+---+------------------+
+ |a | b | c | 12345678901234 6 |
+ +--+---+---+------------------+
+ |a | b | c | 12345678901234 |
+ | | | | 67 |
+ +--+---+---+------------------+
+ five columns:
+ +--+---+---+---+---------------+
+ |a | b | c | d | 12345678901 3 |
+ +--+---+---+---+---------------+
+ |a | b | c | d | 12345678901 |
+ | | | | | 34 |
+ +--+---+---+---+---------------+
+ six columns:
+ +--+---+---+---+---+-------------+
+ |a | b | c | d | e | 123456789 1 |
+ +--+---+---+---+---+-------------+
+ |a | b | c | d | e | 123456789 |
+ | | | | | | 12 |
+ +--+---+---+---+---+-------------+
+ seven columns:
+ +--+---+---+---+---+---+------------+
+ |a | b | c | d | e | f | 12345678 0 |
+ +--+---+---+---+---+---+------------+
+ |a | b | c | d | e | f | 12345678 |
+ | | | | | | | 01 |
+ +--+---+---+---+---+---+------------+
+ eight columns:
+ +--+---+---+---+---+---+---+-----------+
+ |a | b | c | d | e | f | g | 1234567 9 |
+ +--+---+---+---+---+---+---+-----------+
+ |a | b | c | d | e | f | g | 1234567 |
+ | | | | | | | | 90 |
+ +--+---+---+---+---+---+---+-----------+
+OpenBSD June 15, 2017 OpenBSD
-/* $OpenBSD: out.c,v 1.40 2017/06/14 18:23:26 schwarze Exp $ */
+/* $OpenBSD: out.c,v 1.41 2017/06/15 00:27:22 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
tblcalc_data(tbl, col, opts, dp,
dp->block == 0 ? 0 :
dp->layout->width ? dp->layout->width :
- rmargin ? rmargin / (sp->opts->cols + 1) : 0);
+ rmargin ? (rmargin + sp->opts->cols / 2)
+ / (sp->opts->cols + 1) : 0);
}
}