bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 089/100] man/curs_mouse.3x: Fix *roff code style nit.


From: G. Branden Robinson
Subject: [PATCH 089/100] man/curs_mouse.3x: Fix *roff code style nit.
Date: Sat, 30 Mar 2024 17:02:32 -0500

Use of leading spaces for indentation seldom achieves the desired result
on typesetters, which use fonts with proportional spacing, and in
general the semantics of leading spaces are poorly understood by man
page authors and moreover often the unintended result of typos.

Use an explicit instruction to get the desired indentation (on
terminals).

A better approach would be to adopt a synopsis macro, like groff
man(7)'s `SY` and `YS`, for which page-local copies can be defined.
---
 man/curs_mouse.3x | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/curs_mouse.3x b/man/curs_mouse.3x
index 04df96f18..335893b21 100644
--- a/man/curs_mouse.3x
+++ b/man/curs_mouse.3x
@@ -78,7 +78,8 @@ .SH SYNOPSIS
 .PP
 \fBbool mouse_trafo(int* \fIpY\fP, int* \fIpX\fP, bool \fIto_screen\fP);
 \fBbool wmouse_trafo(const WINDOW* \fIwin\fP,
-                  \fBint* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB);\fR
+.ti +18n \" "bool wmouse_trafo("
+\fBint* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB);
 .PP
 \fBint mouseinterval(int \fIerval\fB);\fR
 .fi
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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