discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* groff/mandoc rendering difference with Lk
@ 2014-11-19  8:55 Anthony J. Bentley
  2014-11-19 18:02 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony J. Bentley @ 2014-11-19  8:55 UTC (permalink / raw)
  To: discuss

Hi,

.Sh SEE ALSO
.Lk http://example.com/ The example homepage .

This fragment renders as so in mandoc:

SEE ALSO
     The example homepage: http://example.com/.

But it renders like this in groff:

SEE ALSO
     The: http://example.com/ example homepage.

Unless this is a recent behavior change in groff (and thus a bug),
mandoc should probably match the rendering so that mandoc users
don't forget to quote the arguments.

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

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

* Re: groff/mandoc rendering difference with Lk
  2014-11-19  8:55 groff/mandoc rendering difference with Lk Anthony J. Bentley
@ 2014-11-19 18:02 ` Ingo Schwarze
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Schwarze @ 2014-11-19 18:02 UTC (permalink / raw)
  To: Anthony J. Bentley; +Cc: discuss

Hi Anthony,

Anthony J. Bentley wrote on Wed, Nov 19, 2014 at 01:55:54AM -0700:

> .Sh SEE ALSO
> .Lk http://example.com/ The example homepage .
> 
> This fragment renders as so in mandoc:
> 
> SEE ALSO
>      The example homepage: http://example.com/.
> 
> But it renders like this in groff:
> 
> SEE ALSO
>      The: http://example.com/ example homepage.
> 
> Unless this is a recent behavior change in groff (and thus a bug),

As far as i know, the .Lk macro is a groff addition.
Heirloom, for example, doesn't have it.

Similar macros taking free text arguments - An Cd Fd Mt Sx -
all accept an unlimited number of arguments, so .Lk should, too.
Only a few macros taking very special syntax elements as arguments
- Lb In St - limit their number of arguments in this way.

The odd behaviour of .Lk does not improve usability.
No one in their right mind would put the text following a macro
on the same line.  Even if it works and the macro stops processing
arguments after a fixed number of arguments, it is much clearer
to put following text on the next line.

> mandoc should probably match the rendering so that mandoc users
> don't forget to quote the arguments.

This is one of the cases where i considered the behaviour of groff
so insane that i consciously chose to not follow.  I think groff
should be fixed, i just didn't come round to do it.

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

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

end of thread, other threads:[~2014-11-19 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19  8:55 groff/mandoc rendering difference with Lk Anthony J. Bentley
2014-11-19 18:02 ` Ingo Schwarze

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