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 o7LG6sjZ008850 for ; Sat, 21 Aug 2010 12:06:55 -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 1Omqap-0006Bf-Tp; Sat, 21 Aug 2010 18:06:52 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.71) (envelope-from ) id 1Omqap-00011c-SC for discuss@mdocml.bsd.lv; Sat, 21 Aug 2010 18:06:51 +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 1Omqap-0007W2-RM for discuss@mdocml.bsd.lv; Sat, 21 Aug 2010 18:06:51 +0200 Received: from schwarze by usta.de with local (Exim 4.71) (envelope-from ) id 1Omqap-0006jS-QO for discuss@mdocml.bsd.lv; Sat, 21 Aug 2010 18:06:51 +0200 Date: Sat, 21 Aug 2010 18:06:51 +0200 From: Ingo Schwarze To: discuss@mdocml.bsd.lv Subject: Re: mdocml: .Bl -column phrases ignore spacing rules for trailing Message-ID: <20100821160651.GA31898@iris.usta.de> References: <201008202251.o7KMpT4F020687@krisdoz.my.domain> <4C6FB614.6010201@bsd.lv> 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: <4C6FB614.6010201@bsd.lv> User-Agent: Mutt/1.5.20 (2009-06-14) Hi Kristaps, > By following groff's logic, you'd have to say "if you have a tab > directly after the last token in a list column, the punctuation will > be considered normal text", which is not clear to a dummy like me > anyway. Or: Literal tabs are considered normal word characters, even when delimiting column phrases. But that is about as confusing and surprising. > I suggest that we go with mandoc's old behaviour at the expense of > this one issue. It's easier to make unilateral statements: > punctuation at the end of a list column, whether separated by Ta, > tabs, tabs and spaces, etc., is treated as delimiting punctuation. Right, after pondering this for some time, i tend to agree that traditional roff behaviour of treating tab, space-tab and Ta differently is so surprising that it should indeed be called a bug and not a feature. Now, as you said, this does not affect column lists only, but literal tabs outside column lists as well. But in literal context, there is no issue because spacing is kept verbatim in any case, and outside literal context, tabs are discouraged anyway. So, basically, the tab vs space-tab surprise only affects column lists in practice. Given that the traditional behaviour of column lists has been so quirky in so many ways, i regard it as sane to make it a bit easier to understand at the expense of minor issues with backward compatibility. This is a case where i feel that idea applies. So, i propose the following patch instead. It works with all formatters. Yours, Ingo Index: operator.7 =================================================================== RCS file: /cvs/src/share/man/man7/operator.7,v retrieving revision 1.7 diff -u -p -r1.7 operator.7 --- operator.7 31 May 2007 19:19:58 -0000 1.7 +++ operator.7 21 Aug 2010 16:04:55 -0000 @@ -41,7 +41,7 @@ .Bl -column "= += -= *= /= %= <<= >>= &= ^= |=" .It Operator Associativity .It -------- ------------- -.It \&() [] -> . left to right +.It \&() [] -> \&. left to right .It "! ~ ++ -- - (type) * & sizeof" right to left .It \&* / % left to right .It \&+ - left to right -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv