summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 16:36:22 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-27 16:36:22 +0000
commitcdab9ea18251f42c64c264af67b4b6c9f58f1b4c (patch)
tree0c748427bead9d0c8917681ba00aa8347621b2b0 /mdoc_validate.c
parent971f7ac206ac7af70e97998c7ef5b4536efda79e (diff)
downloadmandoc-cdab9ea18251f42c64c264af67b4b6c9f58f1b4c.tar.gz
Allow registers to be unset. Implement and document the `.nr nS val'.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 8615ad46..99c2e359 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -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));
}