aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-15 21:23:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-15 21:23:52 +0000
commita303f40898d21cb0d5552a2252710ddc741a1cec (patch)
treed38b1f7764118039b866dffbf2f2395e33241aff /mdoc_validate.c
parent9e9da087dda5194812500db223832a351d496b16 (diff)
downloadmandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.tar.gz
mandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.tar.zst
mandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.zip
The "value" argument to the roff(7) .nr requests ends right before
the first non-digit character. While here, implement and document an optional sign, requesting increment or decrement, as documented in the Ossanna/Kernighan/Ritter troff manual and supported by groff. Reported by bentley@ on discuss@.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index b8605a83..4cfd6204 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.197 2013/10/21 23:47:58 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.198 2013/12/15 21:23:52 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -1991,10 +1991,10 @@ post_sh_head(POST_ARGS)
/* The SYNOPSIS gets special attention in other areas. */
if (SEC_SYNOPSIS == sec) {
- roff_setreg(mdoc->roff, "nS", 1);
+ roff_setreg(mdoc->roff, "nS", 1, '=');
mdoc->flags |= MDOC_SYNOPSIS;
} else {
- roff_setreg(mdoc->roff, "nS", 0);
+ roff_setreg(mdoc->roff, "nS", 0, '=');
mdoc->flags &= ~MDOC_SYNOPSIS;
}