From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.rz.uni-karlsruhe.de (Debian-exim@smtp1.rz.uni-karlsruhe.de [129.13.185.217]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o7KENnFo001725 for ; Fri, 20 Aug 2010 10:23:51 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1OmSVW-0008I9-W9; Fri, 20 Aug 2010 16:23:47 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.71) (envelope-from ) id 1OmSVW-0002qf-Ud; Fri, 20 Aug 2010 16:23:46 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1OmSVW-00078N-TR; Fri, 20 Aug 2010 16:23:46 +0200 Received: from schwarze by usta.de with local (Exim 4.71) (envelope-from ) id 1OmSVW-00007u-IG; Fri, 20 Aug 2010 16:23:46 +0200 Date: Fri, 20 Aug 2010 16:23:46 +0200 From: Ingo Schwarze To: Mark Kettenis Cc: jmc@openbsd.org, tech@mdocml.bsd.lv Subject: Re: sysctl(3) man page rendering Message-ID: <20100820142346.GB2203@iris.usta.de> References: <201008181950.o7IJojvu008258@glazunov.sibelius.xs4all.nl> 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: <201008181950.o7IJojvu008258@glazunov.sibelius.xs4all.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Hi Mark, Mark Kettenis wrote on Wed, Aug 18, 2010 at 09:50:45PM +0200: > Could you guys take a look at the sysctl(3) man page? > The tables that list the "names" are rendered badly; > the columns aren't lined up properly. The following patch seems to fix the issue. I need to test it more before committing, but i have to leave now. Thanks for reporting! Ingo Index: term.c =================================================================== RCS file: /cvs/src/usr.bin/mandoc/term.c,v retrieving revision 1.47 diff -u -p -r1.47 term.c --- term.c 20 Aug 2010 00:53:35 -0000 1.47 +++ term.c 20 Aug 2010 14:19:16 -0000 @@ -271,6 +271,12 @@ term_flushln(struct termp *p) vis = vend; } + /* + * If there was trailing white space, it was not printed; + * so reset the cursor position accordingly. + */ + vis -= vbl; + p->col = 0; p->overstep = 0; -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv