aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-27 16:20:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-27 16:20:31 +0000
commitae5f77f4afb4eacc8500ded5455086d6242ae946 (patch)
treea14a4377b896bcb23d2b71d2b57d9b3c825b0a78 /mdoc.7
parent63db09932dec56e5bb940db7c81df9660ab0c0d0 (diff)
downloadmandoc-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.717
1 files changed, 8 insertions, 9 deletions
diff --git a/mdoc.7 b/mdoc.7
index 9f3ca835..e69bb9f7 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -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