tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Re: Improved handling of literals in -man.
Date: Sat, 09 Jul 2011 12:10:16 +0200	[thread overview]
Message-ID: <4E182908.3020704@bsd.lv> (raw)
In-Reply-To: <20110708182325.GB28744@iris.usta.de>

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

      reply	other threads:[~2011-07-09 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 13:10 Kristaps Dzonsons
2011-07-08 18:23 ` Ingo Schwarze
2011-07-09 10:10   ` Kristaps Dzonsons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E182908.3020704@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).