bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 35/40] man/term.5: Make hex dump example less clever.


From: G. Branden Robinson
Subject: [PATCH 35/40] man/term.5: Make hex dump example less clever.
Date: Fri, 12 Jan 2024 14:05:15 -0600

A tbl(1) column modifier of "f(\*(CW)" is too clever for DWB 3.3 tbl.
Replace this by bracketing the table with `ft \*(CW` and `ft` requests
to push and pop a font change; fortunately we need to font changes
within the table (or this wouldn't work).

Drop nroff-only reduction of indentation by 2n.  It still doesn't
overrun an 80n terminal, and a bug fix to GNU tbl expected in groff
1.24[1] (on top of several already released in 1.23[2]) means that man
pages can be safely rendered with a line length of 80n, instead of the
78n convention used by the GNU/Linux community for the past ~30 years.

[1] https://savannah.gnu.org/bugs/index.php?62471
[2] https://savannah.gnu.org/bugs/index.php?63749
    https://savannah.gnu.org/bugs/index.php?61878
    https://savannah.gnu.org/bugs/index.php?61854
---
 man/term.5 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/man/term.5 b/man/term.5
index c6effd226..abe25273a 100644
--- a/man/term.5
+++ b/man/term.5
@@ -404,10 +404,10 @@ .SH EXAMPLES
 .PP
 and a hexadecimal dump of the compiled terminal description:
 .PP
-.ie n .in -2n
-.el   .in +4n
+.if t .in +4n
+.ft \*(CW
 .TS
-lp-1f(\*(CW).
+Lp-1.
 0000  1a 01 10 00 02 00 03 00  82 00 31 00 61 64 6d 33  ........ ..1.adm3
 0010  61 7c 6c 73 69 20 61 64  6d 33 61 00 00 01 50 00  a|lsi ad m3a...P.
 0020  ff ff 18 00 ff ff 00 00  02 00 ff ff ff ff 04 00  ........ ........
@@ -431,6 +431,7 @@ .SH EXAMPLES
 0140  25 70 32 25 7b 33 32 7d  25 2b 25 63 00 0a 00 1e  %p2%{32} %+%c....
 0150  00 08 00 0c 00 0b 00 0a  00                       ........ .
 .TE
+.ft
 .in
 .SH AUTHORS
 Thomas E. Dickey
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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