summaryrefslogtreecommitdiffstats
path: root/out.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-14 02:16:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-14 02:16:06 +0000
commit2db1b6bde4abe38f4836e766eac615660b2f85c2 (patch)
treef103cfddb098081641c520d96c4a4cb17d77c915 /out.h
parent619229efd1f5f1aefbec0666e7effe0039234d0c (diff)
downloadmandoc-2db1b6bde4abe38f4836e766eac615660b2f85c2.tar.gz
Rudimentary implementation of the e, x, and z table layout modifiers
to equalize, maximize, and ignore the width of columns. Does not yet take vertical rulers into account, and does not do line breaks within table cells. Considerably improves the lftp(1) manual; issue noticed by sthen@.
Diffstat (limited to 'out.h')
-rw-r--r--out.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/out.h b/out.h
index 12a2f43f..f5cb962a 100644
--- a/out.h
+++ b/out.h
@@ -34,6 +34,7 @@ enum roffscale {
struct roffcol {
size_t width; /* width of cell */
size_t decimal; /* decimal position in cell */
+ int flags; /* layout flags, see tbl_cell */
};
struct roffsu {
@@ -64,7 +65,8 @@ __BEGIN_DECLS
while (/* CONSTCOND */ 0)
int a2roffsu(const char *, struct roffsu *, enum roffscale);
-void tblcalc(struct rofftbl *tbl, const struct tbl_span *);
+void tblcalc(struct rofftbl *tbl,
+ const struct tbl_span *, size_t);
__END_DECLS