NetBSD Problem Report #56472

From kim@tac.gw.fi  Thu Oct 28 10:16:03 2021
Return-Path: <kim@tac.gw.fi>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 91D2C1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Oct 2021 10:16:03 +0000 (UTC)
Message-Id: <20211028101559.E85A19418D@rendez-vous.gw.fi>
Date: Thu, 28 Oct 2021 13:15:59 +0300 (EEST)
From: kim@netbsd.org (Kimmo Suominen)
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: mandoc does not complain about missing closes
X-Send-Pr-Version: 3.95

>Number:         56472
>Category:       bin
>Synopsis:       mandoc does not complain about missing closes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 28 10:20:00 +0000 2021
>Originator:     kim@netbsd.org (Kimmo Suominen)
>Release:        NetBSD 9.99.92 (202110262340Z)
>Organization:
>Environment:
System: NetBSD rendez-vous.gw.fi 9.99.92 NetBSD 9.99.92 (GENERIC) #0: Tue Oct 26 23:37:40 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

	Running nroff on a document where an .It appears inside an open
	element (e.g. .So) results in an error:

	mdoc error: .It found in enclosing (e.g. .Ac ... .It ... .Ao) (#258)

	Running mandoc on the same document produces no such error.

	It would be helpful for mandoc to complain about any and all missing
	closes. (I feel that nroff is doing it here almost by accident.)

>How-To-Repeat:

	Obtain revision 1.31 of src/lib/libc/stdio/mktemp.3 and run it
	through nroff and mandoc.

	ftp -o mktemp.3 'http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/mktemp.3?rev=1.31'
	nroff -mdoc mktemp.3
	mandoc mktemp.3

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.