From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id q9CGkd0b019725 for ; Fri, 12 Oct 2012 12:46:39 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1TMiNi-0005Lv-12; Fri, 12 Oct 2012 18:46:38 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1TMiNi-0005yd-25; Fri, 12 Oct 2012 18:46:38 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1TMiNi-0000z1-0e; Fri, 12 Oct 2012 18:46:38 +0200 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1TMiNh-0005bY-Lx; Fri, 12 Oct 2012 18:46:37 +0200 Date: Fri, 12 Oct 2012 18:46:37 +0200 From: Ingo Schwarze To: discuss@mdocml.bsd.lv Cc: Nicolas Joly Subject: Re: Small rendering difference between nroff and mandoc Message-ID: <20121012164637.GA7552@iris.usta.de> References: <20121012150036.GA22434@lynche.sis.pasteur.fr> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121012150036.GA22434@lynche.sis.pasteur.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Salut Nicolas, Nicolas Joly wrote on Fri, Oct 12, 2012 at 05:00:36PM +0200: > I recently started checking for differences between nroff and mandoc > output for the NetBSD manpages. Nice to hear that, thanks! > And noticed a small spacing difference > between the tools. When a sentence ends with a macro followed by a > punctuation mark mandoc does only output a single space character but > nroff adds two. Neither the groff nor the mandoc side is as simple as that. For partial implicit block macros, mandoc does end-of-sentence (EOS) spacing already, e.g. .Pq enclosed . following Also, groff only does that when the punctuation mark appears isolated, not when it appears at the end of a word, e.g. .\" fstat(1) .Ux Ns -domain. A unidirectional And groff doesn't do that when the isolated mark appears in the middle of the line. So, it only affects certain macros, and in a non-trivial way. In OpenBSD base, i see one single instance of this issue, in open(2). In any case, this is rather rare and of relatively little impact, compared to other remaining EOS issues. Still, it ought to be fixed eventually. For now, i'm adding this to http://mdocml.bsd.lv/cgi-bin/cvsweb/TODO?cvsroot=mdocml - Trailing isolated dots lack EOS for some macros. This cannot use mandoc_eos() because groff only does EOS for isolated dots at least in some of these cases. Affected macros included those using in_line_eoln(). Make sure to fix open(2) without breaking fstat(1), ksh(1), tzset(3) and UKC(8). reported by Nicolas Joly Fri, 12 Oct 2012 17:00:36 +0200 Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv