diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 16:36:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-27 16:36:22 +0000 |
commit | 6cada7207531441ac6e3c2092d5039902122137b (patch) | |
tree | 4860615c512cd8c77e9b4659d92be388389da8b5 /mdoc_validate.c | |
parent | dc95dcaff23f7235529d0b5d9866a252ca3f8c06 (diff) | |
download | mandoc-6cada7207531441ac6e3c2092d5039902122137b.tar.gz mandoc-6cada7207531441ac6e3c2092d5039902122137b.tar.zst mandoc-6cada7207531441ac6e3c2092d5039902122137b.zip |
Allow registers to be unset. Implement and document the `.nr nS val'.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index de1a7cc1..93b7ed94 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.99 2010/06/13 21:02:49 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.100 2010/06/27 16:36:22 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -806,6 +806,8 @@ pre_sh(PRE_ARGS) if (MDOC_BLOCK != n->type) return(1); + + mdoc->regs->regs[(int)REG_nS].set = 0; return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT)); } |