discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc/nroff small spacing difference for .Bd -offset 0
@ 2012-10-16 18:05 Nicolas Joly
  2012-11-16 22:56 ` Ingo Schwarze
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Joly @ 2012-10-16 18:05 UTC (permalink / raw)
  To: discuss


Hi,

Still checking the NetBSD man pages i noticed a minor difference for
display blocks with an `-offset 0' argument.

nroff displays it as if there wasn't an offset argument, but mandoc do
adds an extra leading space.

njoly@lanfeust [tmp/mandoc]> cat sample.1
.Dd October 16,2012
.Dt SAMPLE 1
.Os
.Sh NAME
.Nm sample
.Nd sample description
.Sh DESCRIPTION
.Bd -literal
Bd no offset
.Ed
.Bd -literal -offset 0
Bd offset 0
.Ed

njoly@lanfeust [tmp/mandoc]> nroff -mandoc sample.1 | grep Bd
     Bd no offset
     Bd offset 0

njoly@lanfeust [tmp/mandoc]> mandoc sample.1 | grep Bd
     Bd no offset
      Bd offset 0

Not a big deal as removing the offending offset argument will produce
a consistent output with both formatters, but wanted to report it
anyway.

Thanks.

-- 
Nicolas Joly

Biology IT Center
Institut Pasteur, Paris.
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-19 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16 18:05 mandoc/nroff small spacing difference for .Bd -offset 0 Nicolas Joly
2012-11-16 22:56 ` Ingo Schwarze
2012-11-19 13:37   ` Nicolas Joly

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).