summaryrefslogtreecommitdiffstats
path: root/tbl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-21 00:47:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-21 00:47:04 +0000
commit131c1facdcd489bdadc435c8b52a339b53475bc3 (patch)
tree484864e88a5923409e5ba70c17759426027088dd /tbl.c
parentfc0d6eeb0bd99d04344d750b1d0008087d558348 (diff)
downloadmandoc-131c1facdcd489bdadc435c8b52a339b53475bc3.tar.gz
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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tbl.c b/tbl.c
index dc8752c9..ffccbb52 100644
--- a/tbl.c
+++ b/tbl.c
@@ -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 *