From 2b66c5c132641d27e718a7a8d4b01c9dce9e1ac8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 13:37:40 +0000 Subject: Switch on tbl rows being added to the parse stream. Here we go! --- tbl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tbl.c') diff --git a/tbl.c b/tbl.c index 7b5e299c..65e1d87e 100644 --- a/tbl.c +++ b/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.11 2010/12/31 18:19:43 kristaps Exp $ */ +/* $Id: tbl.c,v 1.12 2011/01/01 13:37:40 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -56,11 +56,11 @@ tbl_read(struct tbl *tbl, int ln, const char *p, int offs) break; } - /* - * FIXME: allow the original string to slip through for the time - * being. + /* + * This only returns zero if the line is empty, so we ignore it + * and continue on. */ - return(tbl_data(tbl, ln, p) ? ROFF_CONT : ROFF_ERR); + return(tbl_data(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); } struct tbl * -- cgit v1.2.3