aboutsummaryrefslogtreecommitdiffstatshomepage
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
commita7ddb6ec4103182af944faf6e8eab831579a19ba (patch)
tree888b4a23a0606ef2d871f1d96b28cdae5ce8001f /out.h
parent2b61f99bf2ba76a47538698f550c82f40a531253 (diff)
downloadmandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.tar.gz
mandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.tar.zst
mandoc-a7ddb6ec4103182af944faf6e8eab831579a19ba.zip
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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/out.h b/out.h
index a1133ede..de38ec17 100644
--- a/out.h
+++ b/out.h
@@ -1,4 +1,4 @@
-/* $Id: out.h,v 1.23 2014/08/12 19:28:03 schwarze Exp $ */
+/* $Id: out.h,v 1.24 2014/10/14 02:16:06 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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