discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* \l with negative (leftward) length broken
@ 2022-09-25 16:18 наб
  0 siblings, 0 replies; only message in thread
From: наб @ 2022-09-25 16:18 UTC (permalink / raw)
  To: discuss

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

Hi!

  zupsko\l'-\w'zupsko'u\(ul'
is rendered as 
  zupsko______________________________________________________________________________
(i.e. to the right margin) by all mandocs I have in -Tutf8
and as absolutely nothing in -Thtml.

Conversely, groff renders it as underlined zupsko in all modes.

The mandoc output is the same if the width is -3n;
again, groff renders it as zups\b_k\b_o\b_.

More worryingly,
  zupsko\l'|0\(ul'
does nothing on mandoc, instead of correctly underlining the whole line.

In the final case I'm happy to say that mandoc is straight-up broken,
since that /exact/ spelling I encountered in 4BSD tty(4), which uses
  .de Ul
  .ie t \\$1\l'|0\(ul'
  .el \fI\\$1\fP
  ..
to delineate subheadings (McKusick's The CSRG Archives CD#1,
4.0/usr/man/man4/tty.4)
(an equivalent macro appears in the troff user's manual;
 ibid., 3bsd/usr/doc/troff/m3,
 but not in the pages themselves).

The same appears in fsck(8) and and at increasing frequency in manuals
up to 4.3BSD; \l with negative (leftward) distance doesn't seem to've
been used.

Best,
наб

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

only message in thread, other threads:[~2022-09-25 16:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-25 16:18 \l with negative (leftward) length broken наб

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