From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o8M8BVrN008037 for ; Wed, 22 Sep 2010 04:11:32 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 9DCA3156E84 for ; Wed, 22 Sep 2010 10:11:25 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id Jd+uqCssQq4n for ; Wed, 22 Sep 2010 10:11:23 +0200 (CEST) X-KTH-Auth: kristaps [85.8.61.25] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from lappy.cust.alltele.se (h85-8-61-25.dynamic.se.alltele.net [85.8.61.25]) by smtp-1.sys.kth.se (Postfix) with ESMTP id A4ADF156454 for ; Wed, 22 Sep 2010 10:11:22 +0200 (CEST) Message-ID: <4C99BA29.8030401@bsd.lv> Date: Wed, 22 Sep 2010 10:11:21 +0200 From: Kristaps Dzonsons User-Agent: Thunderbird 2.0.0.23 (X11/20100318) X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: Re: more spacing badness References: <20100910211434.GA17432@bramka.kerhand.co.uk> <4C90EC16.8010002@bsd.lv> <20100921230513.GC9516@iris.usta.de> <20100922070918.GB22622@bramka.kerhand.co.uk> In-Reply-To: <20100922070918.GB22622@bramka.kerhand.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > not only that, but somewhere along the way the SYNOPSIS for test(1) got > fixed! now we have: > > [ test ] > instead of > [ test ] Yes, I forgot to mention that test(1) was used as test input. This was an effect of those commits. > not only that, but the -column alignments in sysctl(3) got fixed > somewhere along the way too. > > super! Great! I hadn't noticed that. >> Of course, i was eager to see whether Jason's "vi\ \&" would now work. >> Guess what - it didn't. I first had to fix *two* bugs in my own code. >> >> First, my favourite function term_flushline() handled trailing white >> space correctly, but not trailing escaped blank characters. In the >> initial parsing loop, escaped whitespace is counted as normal >> characters, then in the final output loop, it gets converted to >> normal blanks, and finally, normal blanks (which break out of the >> initial parsing loop) are counted again, so trailing escaped blanks >> ended up being counted twice against the column width. >> >> Having fixed that one, Jason's "vi\ \&" still wouldn't work. >> The reason was a quirk implemented for mdoc's .Bl -hang lists. >> In such lists, when the head is wider than the declared head >> width, the body gets pushed ahead to make room for the head; >> when the head is shorter, the body gets aligned at the declared >> position. The quirk being that when the head is exactly one >> character shorter than the declared width, the body gets pulled >> back one character - for whatever reason. That quirk got triggered >> and defeated Jason's nicely escaped blank. >> >> So, the second fix is to remove the -hang flag from the SYNOPSIS >> .Nm block handling. I don't remember why i put that flag there >> in the first place, it is clearly not needed. The width is >> calculated such that the header will always fit, so pushing ahead >> is never needed, and we certainly do not want to pull back. >> >> OK? >> > > with this my vi hack does work correctly. thanks. Ingo, feel free to commit it, then, if it doesn't regress anything. Thanks, Kristaps -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv