bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 019/177] man/curs_add{,w}str.3x: Ensure synopses don't overset th


From: G. Branden Robinson
Subject: [PATCH 019/177] man/curs_add{,w}str.3x: Ensure synopses don't overset the line.
Date: Mon, 13 Jan 2025 11:16:57 -0600

Break long synopses across lines where they exceed 65 columns on nroff
devices.  This was the line length used by AT&T troff (and BSD troff
until they adopted groff in their Net/2 release), and is, in my opinion,
the minimum line length one can expect to look nice.  groff 1.24 is
expected to feature enhanced `SY`/`YS` macros that work as well with C
function declarations as command-line syntax.  Perhaps we can inline
their definitions in the ncurses man pages (which need to be portable to
legacy Unix systems) after they've seen more field testing.
---
 man/curs_addstr.3x  | 3 ++-
 man/curs_addwstr.3x | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/man/curs_addstr.3x b/man/curs_addstr.3x
index 6372477bf..506ae7618 100644
--- a/man/curs_addstr.3x
+++ b/man/curs_addstr.3x
@@ -66,7 +66,8 @@ .SH SYNOPSIS
 \fBint addnstr(const char * \fIstr\fP, int \fIn\fP);
 \fBint waddnstr(WINDOW * \fIwin\fP, const char * \fIstr\fP, int \fIn\fP);
 \fBint mvaddnstr(int \fIy\fP, int \fIx\fP, const char * \fIstr\fP, int 
\fIn\fP);
-\fBint mvwaddnstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP, const char * 
\fIstr\fP, int \fIn\fP);
+\fBint mvwaddnstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP, const char * 
\fIstr\fP,
+      int \fIn\fP);
 .fi
 .SH DESCRIPTION
 .B waddstr
diff --git a/man/curs_addwstr.3x b/man/curs_addwstr.3x
index bdaca99ef..5e440e6ca 100644
--- a/man/curs_addwstr.3x
+++ b/man/curs_addwstr.3x
@@ -61,12 +61,14 @@ .SH SYNOPSIS
 \fBint addwstr(const wchar_t * \fIwstr\fP);
 \fBint waddwstr(WINDOW * \fIwin\fP, const wchar_t * \fIwstr\fP);
 \fBint mvaddwstr(int \fIy\fP, int \fIx\fP, const wchar_t * \fIwstr\fP);
-\fBint mvwaddwstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP, const wchar_t 
* \fIwstr\fP);
+\fBint mvwaddwstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP,
+      const wchar_t * \fIwstr\fP);
 .PP
 \fBint addnwstr(const wchar_t * \fIwstr\fP, int \fIn\fP);
 \fBint waddnwstr(WINDOW * \fIwin\fP, const wchar_t * \fIwstr\fP, int \fIn\fP);
 \fBint mvaddnwstr(int \fIy\fP, int \fIx\fP, const wchar_t * \fIwstr\fP, int 
\fIn\fP);
-\fBint mvwaddnwstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP, const wchar_t 
* \fIwstr\fP, int \fIn\fP);
+\fBint mvwaddnwstr(WINDOW * \fIwin\fP, int \fIy\fP, int \fIx\fP,
+      const wchar_t * \fIwstr\fP, int \fIn\fP);
 .fi
 .SH DESCRIPTION
 .B waddwstr
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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