From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from forward4m.cmail.yandex.net (forward4m.cmail.yandex.net [5.255.216.22]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id sAAJ3V7s028628 for ; Mon, 10 Nov 2014 14:03:32 -0500 (EST) Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [77.88.61.129]) by forward4m.cmail.yandex.net (Yandex) with ESMTP id F0C7A804B5 for ; Mon, 10 Nov 2014 22:03:23 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id C9C99420061 for ; Mon, 10 Nov 2014 22:03:23 +0300 (MSK) Received: from unknown (unknown [82.113.121.124]) by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TROmL4RQgN-3Ld8SdUc; Mon, 10 Nov 2014 22:03:22 +0300 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 693f30f3-80d1-492e-8ee6-3166355259d0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1415646203; bh=PpLOaOdA1dyHqk++3D2vJdbfSZv4eMYCnOAuaq4RXn8=; h=Date:From:To:Subject:Message-ID:References:In-Reply-To: Mail-Followup-To:User-Agent:MIME-Version:Content-Type; b=gAjFgSbKbqQu/MY9hqBf1LZuqBRa4FLxqLru1kKCGz9HrcFCM+Hfqmx73KL9wF3N0 ftfpHlyuc/7DJevCwlAl5jCqipNBXYctyUI1TP8fy1mEI2LYBFDlFzuix1umWgVoX2 VjIbqxXGq6gLBqdTPPlhmCEOPrYyQz8tmmJXcm/E= Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@yandex.com Date: Mon, 10 Nov 2014 20:03:18 +0100 From: Steffen Nurpmeso To: tech@mdocml.bsd.lv Subject: Re: Nested list spacing issue Message-ID: <20141110190318.BxZAODsW%sdaoden@yandex.com> References: <20141110174010.Dcr6rYrG%sdaoden@yandex.com> In-Reply-To: <20141110174010.Dcr6rYrG%sdaoden@yandex.com> Mail-Followup-To: tech@mdocml.bsd.lv User-Agent: s-nail v14.7.8-70-g9310369 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_01415646198=-JUtGqWVVHysXMsReKUGeFVUDSreIJt=_" This is a multi-part message in MIME format. --=_01415646198=-JUtGqWVVHysXMsReKUGeFVUDSreIJt=_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Ehm, hello, forget about this, this is an issue with mawk(1) which doesn't properly (imho) fflush("") before END{}, resulting in partial output which then irritates mandoc(1) (different to groff(1) which passed over the "EOF" already in it's sequential processing): ?0[]$ awk -v TOC=Ss -f mdocmx.awk < mdocmx.7|mandoc|v ... TABLE OF CONTENTS SYNOPSIS DESCRIPTION Creating a table of contents ... ?0[]$ mawk -v TOC=Ss -f mdocmx.awk < mdocmx.7|mandoc|v ... TABLE OF CONTENTS DESCRIPTION Creating a table of contents ... I've sent a mail to Thomas Dickey regarding this. Sorry for the noise. --steffen --=_01415646198=-JUtGqWVVHysXMsReKUGeFVUDSreIJt=_ Content-Type: message/rfc822 Content-Disposition: inline Content-Description: Original message content Received: from mxfront7j.mail.yandex.net ([127.0.0.1]) by mxfront7j.mail.yandex.net with LMTP id eUTOEh7J for ; Mon, 10 Nov 2014 20:40:30 +0300 Received: from 66.111.2.196.static.nyinternet.net (66.111.2.196.static.nyinternet.net [66.111.2.196]) by mxfront7j.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id W7xT7O2OhK-eSdSpeVW; Mon, 10 Nov 2014 20:40:28 +0300 (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 75eb4a23-bd18-4c0c-9627-a5d278f5ca0b Authentication-Results: mxfront7j.mail.yandex.net; dkim=fail header.i=@yandex.com Received: from krisdoz.my.domain (daemon@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with SMTP id sAAHeOD8023284 for ; Mon, 10 Nov 2014 12:40:27 -0500 (EST) Received: from forward2m.mail.yandex.net (forward2m.mail.yandex.net [37.140.138.2]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id sAAHeMHm007160 for ; Mon, 10 Nov 2014 12:40:23 -0500 (EST) Received: from smtp4m.mail.yandex.net (smtp4m.mail.yandex.net [77.88.61.131]) by forward2m.mail.yandex.net (Yandex) with ESMTP id B42145CA15E1 for ; Mon, 10 Nov 2014 20:40:15 +0300 (MSK) Received: from smtp4m.mail.yandex.net (localhost [127.0.0.1]) by smtp4m.mail.yandex.net (Yandex) with ESMTP id 88FCFBE0339 for ; Mon, 10 Nov 2014 20:40:15 +0300 (MSK) Received: from unknown (unknown [82.113.121.124]) by smtp4m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MQlBgfFeWA-eEm8wXJK; Mon, 10 Nov 2014 20:40:14 +0300 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1415641215; bh=ZbEjbX7OBmrpBynKFG60f0ctlLKoowsU/sBg/1jmgy4=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:User-Agent: MIME-Version:Content-Type:Content-Transfer-Encoding; b=YHjFjQghMPM3M5BmZc0XI1l5Ec+gC+5KpgpJaa8LotMyr08wTAjs/QiDQtEH1X8j2 TJMG8S5XURYSduKI57fkJoKqFotMq6lXMHFKJSKejghJ1Ob5miqdHMXWHrCe97U775 MQM4KUdQjuY5tPn41TNoNKOwq7VjxdOwlR/7e2pw= Date: Mon, 10 Nov 2014 18:40:10 +0100 From: Steffen Nurpmeso To: tech@mdocml.bsd.lv Subject: Nested list spacing issue Message-ID: <20141110174010.Dcr6rYrG%sdaoden@yandex.com> Mail-Followup-To: tech@mdocml.bsd.lv User-Agent: s-nail v14.7.8-70-g9310369 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-Path: tech+bounces-725-sdaoden=yandex.com@mdocml.bsd.lv X-Yandex-Forward: 1431d05c8f532bcc8fea61a74badcb33 Status: R Hello, I'm sure it's known but i can't find a TODO entry in cvs(1) HEAD: suppose this .Sh TABLE OF CONTENTS .Bl -inset .It Sx "DESCRIPTION" .Bl -tag -offset indent .It Sx "Creating a table of contents" ... .El ... .El In groff v1.22.3 you will see TABLE OF CONTENTS DESCRIPTION Creating a table of contents but in mandoc v1.13.1 you get TABLE OF CONTENTS DESCRIPTION Creating a table of contents which i think lacks an initial vertical space when the .Bl is opened? A different approach could be found below, but i don't know if it's always like that (and am too lazy to evaluate). --steffen diff --git a/mandoc.1 b/mandoc.1 index 19c90f6..838ea51 100644 --- a/mandoc.1 +++ b/mandoc.1 @@ -1572,6 +1572,7 @@ macro in .Fl T Ns Cm ascii does not assert a prior vertical break, just as it doesn't with .Sq \&Sh . +Likewise the first item of a nested list won't assert a vertical break. .It The .Sq \&na -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv --=_01415646198=-JUtGqWVVHysXMsReKUGeFVUDSreIJt=_-- -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv