summaryrefslogtreecommitdiffstats
path: root/tbl.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-29 14:53:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-29 14:53:31 +0000
commit8e25f248df0dc1385f91b1da975e220bd25e4c34 (patch)
tree2c2f9a601f450969482355c97ce7d698615fc0f2 /tbl.c
parent9864cb8baea0db37f74a5bca120318017b215c1f (diff)
downloadmandoc-8e25f248df0dc1385f91b1da975e220bd25e4c34.tar.gz
Add handling for `T&', which restarts a table except for its options.
Diffstat (limited to 'tbl.c')
-rw-r--r--tbl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tbl.c b/tbl.c
index 537c7182..db468617 100644
--- a/tbl.c
+++ b/tbl.c
@@ -120,3 +120,11 @@ tbl_reset(struct tbl *tbl)
tbl_init(tbl);
}
+void
+tbl_restart(struct tbl *tbl)
+{
+
+ tbl_clear(tbl);
+ tbl->part = TBL_PART_LAYOUT;
+}
+