diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-21 00:47:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-21 00:47:04 +0000 |
commit | f226d0c041ab711f61ea445f2e8826262e4e7f8a (patch) | |
tree | 42805e810f34ae2dd1c7a649ddaa2474bd72e683 /tbl.c | |
parent | 03eb100b63b3e72e275bbf3e47c2fefc8d912b18 (diff) | |
download | mandoc-f226d0c041ab711f61ea445f2e8826262e4e7f8a.tar.gz mandoc-f226d0c041ab711f61ea445f2e8826262e4e7f8a.tar.zst mandoc-f226d0c041ab711f61ea445f2e8826262e4e7f8a.zip |
blank lines in tables do not need special handling; simplifies code
and reduces groff/mandoc differences in OpenBSD base by about 1%
Diffstat (limited to 'tbl.c')
-rw-r--r-- | tbl.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.31 2015/01/14 22:44:55 schwarze Exp $ */ +/* $Id: tbl.c,v 1.32 2015/01/21 00:47:04 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -66,11 +66,8 @@ tbl_read(struct tbl_node *tbl, int ln, const char *p, int offs) break; } - /* - * This only returns zero if the line is empty, so we ignore it - * and continue on. - */ - return(tbl_data(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); + tbl_data(tbl, ln, p); + return(ROFF_TBL); } struct tbl_node * |