discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Thomas Klausner <wiz@netbsd.org>
To: discuss@mdocml.bsd.lv
Subject: mandoc and nroff differs for Em macro construct in columnated list
Date: Wed, 12 Oct 2011 00:20:00 +0200	[thread overview]
Message-ID: <20111011222000.GK25396@danbala.tuwien.ac.at> (raw)

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

Another issue found by Nicolas Joly. I can reproduce it with mdocml-1.12.0.

Cheers,
 Thomas

----- Forwarded message from Nicolas Joly <njoly@pasteur.fr> -----

Hi Thomas,

I just found another nroff vs. mandoc difference while looking into
bwi(4) man page.

In a columnated list, use of Em macro differs with a quoted string of
words separated by tab characters. While nroff do emphasis all words,
mandoc do only make the first one.

The attached sample output differs for the second item line.  While we
can rewrite this by using constructs like the 3rd item line, i wonder
if this behaviour is to be expected ?

Thanks.

NB: At least the following man pages suffer from this:

man1/mt.1
man1/nl.1
man3/rpc.3
man4/ath.4
man4/bwi.4
man4/crypto.4
man4/dge.4
man4/rtw.4
man4/swcrypto.4
man4/termios.4
man8/ccdconfig.8

-- 
Nicolas Joly

Projects and Developments in Bioinformatics
Institut Pasteur, Paris.

----- End forwarded message -----

[-- Attachment #2: sample.1 --]
[-- Type: text/plain, Size: 367 bytes --]

.Dd October 10, 2011
.Dt SAMPLE 1
.Os
.Sh NAME
.Nm sample
.Nd sample description
.Sh SYNOPSIS
.Nm sample
.Sh DESCRIPTION
The
.Nm
is a sample test for Em macro.
.Pp
.Em "Words separated by spaces"
.Pp
.Em "Words	separated	by	tabs"
.Bl -column "column1" "column2" "column3"
.It Em "word1 word2 word3"
.It Em "word1	word2	word3"
.It Em word1 Ta Em word2 Ta Em word3
.El

             reply	other threads:[~2011-10-11 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 22:20 Thomas Klausner [this message]
2011-10-12  0:18 ` Ingo Schwarze

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=20111011222000.GK25396@danbala.tuwien.ac.at \
    --to=wiz@netbsd.org \
    --cc=discuss@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).