[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 49/51: [mdoc]: Handle LL and LT registers as man(7) does.
From: |
G. Branden Robinson |
Subject: |
[groff] 49/51: [mdoc]: Handle LL and LT registers as man(7) does. |
Date: |
Sun, 11 Sep 2022 08:15:56 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit a06283e8cbd8146f77573d9083a333ab48f0ed85
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Sep 9 06:16:33 2022 -0500
[mdoc]: Handle LL and LT registers as man(7) does.
* tmac/mdoc/doc-ditroff (doc-setup-page-layout): In troff mode, if the
user does not define the `LL` register, use the device's default line
length, not 6.5 inches. If the user does not define the `LT`
register, make the default line length for titles the same as the
regular line length, not 6.5 inches independently of it. This is
consistent with man(7)'s handling of `LL` and `LT`.
---
ChangeLog | 10 ++++++++++
tmac/mdoc/doc-ditroff | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 743f0a5e2..f150883fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-09-09 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/mdoc/doc-ditroff (doc-setup-page-layout): In troff mode,
+ if the user does not define the `LL` register, use the device's
+ default line length, not 6.5 inches. If the user does not
+ define the `LT` register, make the default line length for
+ titles the same as the regular line length, not 6.5 inches
+ independently of it. This is consistent with man(7)'s handling
+ of `LL` and `LT`.
+
2022-09-09 G. Branden Robinson <g.branden.robinson@gmail.com>
[mdoc]: Support `AD` string to set default adjustment mode.
diff --git a/tmac/mdoc/doc-ditroff b/tmac/mdoc/doc-ditroff
index 4f68d7f08..7baeb7117 100644
--- a/tmac/mdoc/doc-ditroff
+++ b/tmac/mdoc/doc-ditroff
@@ -154,12 +154,12 @@
. ie r LL \
. ll \n[LL]u
. el \
-. ll 6.5i
+. ll \n[.l]u
.
. ie r LT \
. lt \n[LT]u
. el \
-. lt 6.5i
+. lt \n[.l]u
.
. po 1i
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 49/51: [mdoc]: Handle LL and LT registers as man(7) does.,
G. Branden Robinson <=