summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-16 20:49:38 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-10-16 20:49:38 +0000
commite0a3532216a8a9547ceae91175a4e3ddb662dc4e (patch)
tree4162c485b23d5d4eea3567f2c5471e180730d3d2 /usr.bin/mandoc/man_term.c
parent342b227d47ff0a73a9f6620547bf4daae24212cf (diff)
Do not abort() on tbl errors, reduce the risk that tbl stuff kills a build,
and provide more useful tbl error messages in a non-intrusive way.
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r--usr.bin/mandoc/man_term.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 2e59ae68264..4f8a3623957 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.49 2010/10/15 22:07:12 schwarze Exp $ */
+/* $Id: man_term.c,v 1.50 2010/10/16 20:49:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -838,10 +838,8 @@ pre_TS(DECL_ARGS)
if (MAN_BLOCK != n->type)
return(0);
- if ( ! tbl_close(p, n->data.TS, "<man>", n->line))
- return(0);
-
- tbl_write(p, n->data.TS);
+ if (tbl_close(p, n->data.TS, "man tbl postprocess", n->line))
+ tbl_write(p, n->data.TS);
return(0);
}