From f226d0c041ab711f61ea445f2e8826262e4e7f8a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 21 Jan 2015 00:47:04 +0000 Subject: blank lines in tables do not need special handling; simplifies code and reduces groff/mandoc differences in OpenBSD base by about 1% --- tbl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tbl.c') diff --git a/tbl.c b/tbl.c index dc59266d..b6492524 100644 --- a/tbl.c +++ b/tbl.c @@ -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 * Copyright (c) 2011 Ingo Schwarze @@ -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 * -- cgit v1.2.3