groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 07/14: [mdoc]: Use more reasonable fallback title length.


From: G. Branden Robinson
Subject: [groff] 07/14: [mdoc]: Use more reasonable fallback title length.
Date: Mon, 1 Nov 2021 09:19:39 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2c63c2b3cc488ea129302dc46c65374ad334af7a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 31 20:03:53 2021 +1100

    [mdoc]: Use more reasonable fallback title length.
    
    * tmac/mdoc/doc-nroff (doc-setup-page-layout): Set the title length to
      the configured line length (register `.l`) if register `LT` is not
      defined.  This keeps the title length from being set to 78n when the
      line length is not, preventing the output from looking silly.
---
 ChangeLog           | 8 ++++++++
 tmac/mdoc/doc-nroff | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ae58232..2faa406 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-10-31  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/mdoc/doc-nroff (doc-setup-page-layout): Set the title
+       length to the configured line length (register `LL`) if register
+       `LT` is not defined.  This keeps the title length from being set
+       to 78n when the line length is not, preventing the output from
+       looking silly.
+
+2021-10-31  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * src/preproc/tbl/main.cpp (main): Emit groff code to define
        macro `T&` as empty if it is not already defined.  (All of our
        full-service macro packages [except mdoc(7)] already do this, so
diff --git a/tmac/mdoc/doc-nroff b/tmac/mdoc/doc-nroff
index fb07753..133b384 100644
--- a/tmac/mdoc/doc-nroff
+++ b/tmac/mdoc/doc-nroff
@@ -141,7 +141,7 @@
 .  ie r LT \
 .    lt \n[LT]u
 .  el \
-.    lt 78n
+.    lt \n[.l]u
 .
 .  po 0i
 .



reply via email to

[Prev in Thread] Current Thread [Next in Thread]