aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-11 14:12:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-11 14:12:01 +0000
commitc55312cd12a98b785c3fcb600c21a78c6704d667 (patch)
tree3f7f805be1f9e69f5b33a685c67268c5c0b1eec4 /tbl_term.c
parent5e6fd78525e0976e02b4fe2de55f0064a648cefe (diff)
downloadmandoc-c55312cd12a98b785c3fcb600c21a78c6704d667.tar.gz
mandoc-c55312cd12a98b785c3fcb600c21a78c6704d667.tar.zst
mandoc-c55312cd12a98b785c3fcb600c21a78c6704d667.zip
Add support for "^" vertical spanners. Unlike GNU tbl, raise
error-class messages when data is being ignored by specifying it in "^" cells (either as-is or in blocks). Also note again that horizontal spanners aren't really supported...
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tbl_term.c b/tbl_term.c
index b93cae3e..57fc3290 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_term.c,v 1.17 2011/01/10 14:56:06 kristaps Exp $ */
+/* $Id: tbl_term.c,v 1.18 2011/01/11 14:12:01 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -305,6 +305,9 @@ tbl_data(struct termp *tp, const struct tbl *tbl,
case (TBL_CELL_NUMBER):
tbl_number(tp, tbl, dp, col);
break;
+ case (TBL_CELL_DOWN):
+ tbl_char(tp, ASCII_NBRSP, col->width);
+ break;
default:
abort();
/* NOTREACHED */