bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 1/5] Fix markup errors I introduced.


From: G. Branden Robinson
Subject: [PATCH 1/5] Fix markup errors I introduced.
Date: Sun, 24 Sep 2023 14:13:23 -0500

When using `\%` to suppress hyphenation, the escape sequence must come
at the beginning of what *roff regards as a word, which is any sequence
of ordinary or special characters (in other words, not spaces and not
newlines).

This prevents weird breaks after parentheses (-
like that).
---
 man/curs_color.3x    | 4 ++--
 man/curs_slk.3x      | 2 +-
 man/curs_terminfo.3x | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/man/curs_color.3x b/man/curs_color.3x
index 6b1e5bac..9f956ce0 100644
--- a/man/curs_color.3x
+++ b/man/curs_color.3x
@@ -193,14 +193,14 @@ .SS start_color
 It restores the colors on the terminal to the values
 they had when the terminal was just turned on.
 .bP
-If the terminal supports the \fBinitc\fP (\fB\%initialize_color\fP) capability,
+If the terminal supports the \fBinitc\fP \%(\fBinitialize_color\fP) capability,
 \fB\%start_color\fP
 initializes its internal table representing the
 red, green, and blue components of the color palette.
 .IP
 The components depend on whether the terminal uses
 CGA (aka \*(``ANSI\*('') or
-HLS (i.e., the \fBhls\fP (\fB\%hue_lightness_saturation\fP) capability is set).
+HLS (i.e., the \fBhls\fP \%(\fBhue_lightness_saturation\fP) capability is set).
 The table is initialized first for eight basic colors
 (black, red, green, yellow, blue, magenta, cyan, and white),
 using weights that depend upon the CGA/HLS choice.
diff --git a/man/curs_slk.3x b/man/curs_slk.3x
index 2cdab792..22cb1044 100644
--- a/man/curs_slk.3x
+++ b/man/curs_slk.3x
@@ -274,7 +274,7 @@ .SH PORTABILITY
 Two of these new functions (unlike the SVr4 functions) have no provision
 for color: \fB\%slk_attr_on\fP and \fB\%slk_attr_off\fP.
 .IP
-The third function (\fB\%slk_attr_set\fP) has a color-pair parameter.
+The third function \%(\fBslk_attr_set\fP) has a color-pair parameter.
 .bP
 It added \fBconst\fP qualifiers to parameters (unnecessarily), and
 .bP
diff --git a/man/curs_terminfo.3x b/man/curs_terminfo.3x
index 90aef061..d12e148f 100644
--- a/man/curs_terminfo.3x
+++ b/man/curs_terminfo.3x
@@ -216,7 +216,7 @@ .SS Initialization
 having too little information for \fIcurses\fP applications to run.
 .IP
 \fB\%setupterm\fP determines if the entry is a generic type by
-checking the \fBgn\fP (\fB\%generic_type\fP) capability.
+checking the \fBgn\fP \%(\fBgeneric_type\fP) capability.
 .TP 5
 .B \-1
 means that the \fIterminfo\fP database could not be found.
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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