bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 28/40] man/curs_attr.3x: Fix excessively wide table in "HISTORY"


From: G. Branden Robinson
Subject: [PATCH 28/40] man/curs_attr.3x: Fix excessively wide table in "HISTORY" section.
Date: Fri, 12 Jan 2024 14:01:20 -0600

...and other nits.

Content:
* Give the "Color" and "Char" columns a "Bits" super-heading.

Style:
* Set "curses" in italics, not roman.
* Set data types in italics, not bold, or in quotation marks.
* Stop indenting the table; this buys 7n of width.

Markup:
* Refactor table format specification.
  + Use column modifiers to set heading rows in bold instead of
    populating every entry in them with font selection escape sequences.
  + Use a single '_' to indicate a horizontal rule spanning the table.
* Use tbl(1) features to fit the table within 65n.
  + Use explicit inter-column gap specifications, reducing the 3n
    default to 2n after the "Year", "Arch", and "Char" columns, buying 3
    ens for the "Notes" column (which uses the 'x' modifier, expanding
    to occupy the available line length).
  + Use 'z' modifier on "Color" column to make tbl ignore its 5n width
    so that only the column's contents below it influence the
    computation of the column width.

Fixes:
.../man3/attr.3ncurses:512: warning: table wider than line length minus 
indentation
---
 man/curs_attr.3x | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/man/curs_attr.3x b/man/curs_attr.3x
index 17ac9fbad..d2c37b6ef 100644
--- a/man/curs_attr.3x
+++ b/man/curs_attr.3x
@@ -510,25 +510,25 @@ .SH HISTORY
 A 32-bit library can be used on a 64-bit system,
 but not necessarily the reverse.
 .PP
-.RS
 .TS
-l l l l l l
-_ _ _ _ _ _
-l l l l l l .
-\fBYear\fP     \fBSystem\fP    \fBArch\fP      \fBColor\fP     \fBChar\fP      
\fBNotes\fP
-1992   Solaris 5.2     32      6       17      SVr4 curses
-1992   HP-UX 9 32      no      8       SVr2 curses
-1992   AIX 3.2 32      no      23      SVr2 curses
-1994   OSF/1 r3        32      no      23      SVr2 curses
-1995   HP-UX 10.00     32      6       16      SVr3 \*(``curses_colr\*(''
-1995   HP-UX 10.00     32      6       8       SVr4, X/Open curses
-1995   Solaris 5.4     32/64   7       16      X/Open curses
-1996   AIX 4.2 32      7       16      X/Open curses
-1996   OSF/1 r4        32      6       16      X/Open curses
-1997   HP-UX 11.00     32      6       8       X/Open curses
-2000   U/Win   32/64   7/31    16      uses \fBchtype\fP
+Lb  Lb Lb  Cb  S   Lb
+Lb2 Lb Lb2 Lbz Lb2 Lb
+L   L  L   L   L   Lx.
+\&     \&      \&      Bits    \&
+Year   System  Arch    Color   Char    Notes
+_
+1992   Solaris 5.2     32      6       17      SVr4 \fIcurses\fP
+1992   HP-UX 9 32      no      8       SVr2 \fIcurses\fP
+1992   AIX 3.2 32      no      23      SVr2 \fIcurses\fP
+1994   OSF/1 r3        32      no      23      SVr2 \fIcurses\fP
+1995   HP-UX 10.00     32      6       16      SVr3 \fIcurses_colr\fP
+1995   HP-UX 10.00     32      6       8       SVr4, X/Open \fIcurses\fP
+1995   Solaris 5.4     32/64   7       16      X/Open \fIcurses\fP
+1996   AIX 4.2 32      7       16      X/Open \fIcurses\fP
+1996   OSF/1 r4        32      6       16      X/Open \fIcurses\fP
+1997   HP-UX 11.00     32      6       8       X/Open \fIcurses\fP
+2000   U/Win   32/64   7/31    16      uses \fIchtype\fP
 .TE
-.RE
 .PP
 Notes:
 .RS 3
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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