diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-08 18:11:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-08 18:11:16 +0000 |
commit | 29de5e3b57a4df84cf9f222161f7d48f5bd7ab7f (patch) | |
tree | 6b9d8dcae8973e35a7d13545b731741a5218d234 /usr.bin/mandoc/tbl.c | |
parent | 7f27d6b310598935e862e69db1357f7cd747504c (diff) |
Implement w layout specifier (minimum column width).
Improve width calculation of text blocks.
Reduces the groff/mandoc diff in Base+Xenocara by about 800 lines.
Diffstat (limited to 'usr.bin/mandoc/tbl.c')
-rw-r--r-- | usr.bin/mandoc/tbl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/tbl.c b/usr.bin/mandoc/tbl.c index 0e638a482f2..63e91b77a50 100644 --- a/usr.bin/mandoc/tbl.c +++ b/usr.bin/mandoc/tbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tbl.c,v 1.21 2015/10/06 18:30:44 schwarze Exp $ */ +/* $OpenBSD: tbl.c,v 1.22 2017/06/08 18:11:15 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -112,6 +112,7 @@ tbl_free(struct tbl_node *tbl) while (rp->first != NULL) { cp = rp->first; rp->first = cp->next; + free(cp->wstr); free(cp); } free(rp); |