discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Sm off and text lines
@ 2024-09-25 20:33 Evan Silberman
  0 siblings, 0 replies; only message in thread
From: Evan Silberman @ 2024-09-25 20:33 UTC (permalink / raw)
  To: discuss

mdoc(7) on the Sm macro reads (emphasis added):

> By default, spacing is on. When switched off, no white space is
> inserted between macro arguments and between the output generated from
> adjacent macros, but text lines still get normal spacing between words
> **and sentences.**

This implied to me that while spacing is off, consecutive text lines
would have spacing between them as normal. In fact they do not:

    text
    .Sm off
    text.
    text
    .Sm on
    text

renders as

    text text.text text

(The "." is in there since the allusion in the documentation to
sentences made me wonder if that made a difference; it doesn't.)

I don't think there's any regression tests for Sm that have multiple
text lines within the scope of Sm off.

So, would it be more correct for the Sm documentation to state that
spacing within a text line is still handled normally, and spaces between
consecutive text lines are suppressed?

Thanks,
Evan
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-25 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-25 20:33 Sm off and text lines Evan Silberman

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