aboutsummaryrefslogtreecommitdiffstatshomepage
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
commited9a4d16c1a2d80761d345659efdc86d2c919b82 (patch)
treeba18c73a5717a69105e2049ab3744deb07da832f /tbl.c
parente66333ee27414556c8aac46398d7119658673b54 (diff)
downloadmandoc-ed9a4d16c1a2d80761d345659efdc86d2c919b82.tar.gz
mandoc-ed9a4d16c1a2d80761d345659efdc86d2c919b82.tar.zst
mandoc-ed9a4d16c1a2d80761d345659efdc86d2c919b82.zip
Add handling for `T&', which restarts a table except for its options.
Diffstat (limited to 'tbl.c')
-rw-r--r--tbl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tbl.c b/tbl.c
index 1e7f564b..0d992f16 100644
--- a/tbl.c
+++ b/tbl.c
@@ -1,4 +1,4 @@
-/* $Id: tbl.c,v 1.6 2010/12/29 14:38:14 kristaps Exp $ */
+/* $Id: tbl.c,v 1.7 2010/12/29 14:53:31 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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;
+}
+