diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-27 16:20:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-27 16:20:31 +0000 |
commit | ae5f77f4afb4eacc8500ded5455086d6242ae946 (patch) | |
tree | a14a4377b896bcb23d2b71d2b57d9b3c825b0a78 /mdoc.7 | |
parent | 63db09932dec56e5bb940db7c81df9660ab0c0d0 (diff) | |
download | mandoc-ae5f77f4afb4eacc8500ded5455086d6242ae946.tar.gz mandoc-ae5f77f4afb4eacc8500ded5455086d6242ae946.tar.zst mandoc-ae5f77f4afb4eacc8500ded5455086d6242ae946.zip |
Fix the obsolete .Db (toggle debug mode) macro to ignore its arguments
and not trigger an assertion when there is more than one argument;
the latter found by jsg@ with afl.
Diffstat (limited to 'mdoc.7')
-rw-r--r-- | mdoc.7 | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.241 2014/11/16 20:46:21 schwarze Exp $ +.\" $Id: mdoc.7,v 1.242 2014/11/27 16:20:31 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010, 2011, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 16 2014 $ +.Dd $Mdocdate: November 27 2014 $ .Dt MDOC 7 .Os .Sh NAME @@ -1185,13 +1185,12 @@ See also and .Sx \&Dl . .Ss \&Db -Switch debugging mode. -Its syntax is as follows: -.Pp -.D1 Pf \. Sx \&Db Cm on | off -.Pp -This macro is ignored by -.Xr mandoc 1 . +This macro is obsolete. +No replacement is needed. +It is ignored by +.Xr mandoc 1 +and groff including its arguments. +It was formerly used to toggle a debugging mode. .Ss \&Dc Close a .Sx \&Do |