From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id fcc4fd26; for ; Sun, 19 Apr 2015 14:51:47 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (envelope-from ) id 1YjvFq-0007W1-0S; Sun, 19 Apr 2015 21:51:47 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1YjvFp-0004KP-RG; Sun, 19 Apr 2015 21:51:45 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.80) (envelope-from ) id 1YjvFp-0003Bl-NX; Sun, 19 Apr 2015 21:51:45 +0200 Received: from localhost (1031@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id f3340a83; Sun, 19 Apr 2015 21:51:45 +0200 (CEST) Date: Sun, 19 Apr 2015 21:51:45 +0200 From: Ingo Schwarze To: tech@mdocml.bsd.lv Cc: Christian Neukirchen Subject: Re: .TP/.HP inconsistent indentation with .br? Message-ID: <20150419195145.GO32377@athene.usta.de> References: <878ue2r9lq.fsf@gmail.com> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878ue2r9lq.fsf@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Hi Christian, Christian Neukirchen wrote on Wed, Apr 08, 2015 at 04:13:53PM +0200: > The following is a minimal example from a bug found in Linux dmsetup(8): > > > .SH SYNOPSIS > .TP > .B mirror > .br > Mirrors data across two or more devices. > .HP > .B multipath > .br > Mediates access through multiple paths to the same device. > > > In groff-1.22.3 and plan9port nroff both sentences are indented 5 > spaces, in mdocml-1.13.3 the second sentence is not indented at all. I just committed a fix to both OpenBSD and mdocml.bsd.lv. Thanks for reporting! Ingo Log Message: ----------- If an explicit line break request (.br or .sp) occurs within an .HP block, the next line doesn't hang, but is simply indented. Issue found by Christian Neukirchen in the dmsetup(8) manual on Linux. This patch also improves the indentation of XDGA(3) and XrmGetResource(3). Modified Files: -------------- mdocml: man_term.c Revision Data ------------- Index: man_term.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/man_term.c,v retrieving revision 1.182 retrieving revision 1.183 diff -Lman_term.c -Lman_term.c -u -p -r1.182 -r1.183 --- man_term.c +++ man_term.c @@ -482,6 +482,17 @@ pre_sp(DECL_ARGS) for (i = 0; i < len; i++) term_vspace(p); + /* + * Handle an explicit break request in the same way + * as an overflowing line. + */ + + if (p->flags & TERMP_BRIND) { + p->offset = p->rmargin; + p->rmargin = p->maxrmargin; + p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND); + } + return(0); } -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv