From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p69AAQ0O016582 for ; Sat, 9 Jul 2011 06:10:27 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 0EC3314DC87 for ; Sat, 9 Jul 2011 12:10:20 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([130.237.32.160]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id 6UqViWBFYTj3 for ; Sat, 9 Jul 2011 12:10:18 +0200 (CEST) X-KTH-Auth: kristaps [89.158.117.88] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: tech@mdocml.bsd.lv Received: from macky.local (89-158-117-88.rev.dartybox.com [89.158.117.88]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 558C914C137 for ; Sat, 9 Jul 2011 12:10:16 +0200 (CEST) Message-ID: <4E182908.3020704@bsd.lv> Date: Sat, 09 Jul 2011 12:10:16 +0200 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv Subject: Re: Improved handling of literals in -man. References: <4E1701C4.5070007@bsd.lv> <20110708182325.GB28744@iris.usta.de> In-Reply-To: <20110708182325.GB28744@iris.usta.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/07/2011 20:23, Ingo Schwarze wrote: > Hi Kristaps, > > Kristaps Dzonsons wrote on Fri, Jul 08, 2011 at 03:10:28PM +0200: > >> Enclosed is a patch that considerably simplifies and improves the >> handling of literals in -man. > > Err, no. > It considerably breaks literal handling and removes functionality. > > Here is a (possibly partial) list of what breaks: > > /usr/src/regress/usr.bin/mandoc/man/nf/indent > - Long lines now wrap even in literal mode. > > /usr/src/regress/usr.bin/mandoc/man/nf/indent > /usr/src/regress/usr.bin/mandoc/man/nf/args > /usr/src/regress/usr.bin/mandoc/man/IP/literal > /usr/src/regress/usr.bin/mandoc/man/TP/literal > - Regular text right after .fi ends up one the same line > as the last line of the text in the literal block. > > c2ph(1): > - Lines containing nothing but "\&" get lost. > > Actually, there is also one thing this seems to fix: > > .ft B > .nf > some text > .fi > .ft P > > That's supposed to produce bold literal text, which currently mandoc > does not do. See cvs(1) for an example, search for "1 month ago". > > At the end of the day, this patch causes so much noise that i'm > giving up on doing a full regression report. I don't really feel > like reading through a 150 thousand line diff right now. :-o Meh... I do know that the current approach is flawed (given certain input, the margin-restructuring in the MANT_LITERAL can cause bananas output), so I'll take some time to download -current and work with your manual-difference patch to construct some better diffs... Thanks, Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv