diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-29 14:53:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-29 14:53:31 +0000 |
commit | ed9a4d16c1a2d80761d345659efdc86d2c919b82 (patch) | |
tree | ba18c73a5717a69105e2049ab3744deb07da832f /tbl.c | |
parent | e66333ee27414556c8aac46398d7119658673b54 (diff) | |
download | mandoc-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.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; +} + |