diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-27 18:25:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-27 18:25:02 +0000 |
commit | cd0313514de5f02c468c13b8125900bef22346b3 (patch) | |
tree | dce07518bf91752b0796030d73400941f20a574a /tbl_layout.c | |
parent | ce3e6e6c76cc1cfca6d316eee86a713e5a145ba6 (diff) | |
download | mandoc-cd0313514de5f02c468c13b8125900bef22346b3.tar.gz mandoc-cd0313514de5f02c468c13b8125900bef22346b3.tar.zst mandoc-cd0313514de5f02c468c13b8125900bef22346b3.zip |
Implement spacing of columns as defined in the table layout;
this is for example used by lftp(1)
and, ironically, misused by our very own tbl(7) manual...
Diffstat (limited to 'tbl_layout.c')
-rw-r--r-- | tbl_layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index 5357d808..42fc0e82 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -1,4 +1,4 @@ -/* $Id: tbl_layout.c,v 1.43 2017/06/13 16:12:01 schwarze Exp $ */ +/* $Id: tbl_layout.c,v 1.44 2017/06/27 18:25:02 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -20,6 +20,7 @@ #include <sys/types.h> #include <ctype.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <time.h> @@ -357,6 +358,7 @@ cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) struct tbl_cell *p, *pp; p = mandoc_calloc(1, sizeof(*p)); + p->spacing = SIZE_MAX; p->pos = pos; if ((pp = rp->last) != NULL) { |