aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 13:37:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 13:37:40 +0000
commit2b66c5c132641d27e718a7a8d4b01c9dce9e1ac8 (patch)
tree9102800579aa25c39ce8eb687ce3dddb4f3ec78b /tbl.c
parentc80b8c034f0e42db26a04a17527b0b7e3dc6512b (diff)
downloadmandoc-2b66c5c132641d27e718a7a8d4b01c9dce9e1ac8.tar.gz
mandoc-2b66c5c132641d27e718a7a8d4b01c9dce9e1ac8.tar.zst
mandoc-2b66c5c132641d27e718a7a8d4b01c9dce9e1ac8.zip
Switch on tbl rows being added to the parse stream. Here we go!
Diffstat (limited to 'tbl.c')
-rw-r--r--tbl.c10
1 files changed, 5 insertions, 5 deletions
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 <kristaps@bsd.lv>
*
@@ -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 *