Package: suckless-tools / 48-1

Escape-symbol-in-manpage.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
From: Ilias Tsitsimpis <i.tsitsimpis@gmail.com>
Date: Sat, 10 Oct 2015 19:54:16 +0300
Subject: tabbed: Escape '-' symbol in manpage

Manpage for tabbed was using '-' symbol without escape which will be
considered by groff as hyphen. This patch escapes the '-' in manpages.
This patch also replaces existing example given by upstream to embed an
app into tabbed with a version which uses the secure temp files using
mktemp. This patch also replaces incorrect *roff macros reported by lintian.

Author: Vasudev Kamath <kamathvasudev@gmail.com>
Forwarded: no
---
 slstatus/slstatus.1 |    5 +++--
 tabbed/tabbed.1     |   18 +++++++++---------
 2 files changed, 12 insertions(+), 11 deletions(-)

--- a/tabbed/tabbed.1
+++ b/tabbed/tabbed.1
@@ -34,19 +34,19 @@ tabbed \- generic tabbed interface
 is a simple tabbed container for applications which support XEmbed. Tabbed
 will then run the provided command with the xid of tabbed as appended
 argument. (See EXAMPLES.) The automatic spawning of the command can be
-disabled by providing the -s parameter. If no command is provided
+disabled by providing the \-s parameter. If no command is provided
 tabbed will just print its xid and run no command.
 .SH OPTIONS
 .TP
 .B \-c
-close tabbed when the last tab is closed. Mutually exclusive with -f.
+close tabbed when the last tab is closed. Mutually exclusive with \-f.
 .TP
 .B \-d
 detaches tabbed from the terminal and prints its XID to stdout.
 .TP
 .B \-f
 fill up tabbed again by spawning the provided command, when the last tab is
-closed. Mutually exclusive with -c.
+closed. Mutually exclusive with \-c.
 .TP
 .BI \-g " geometry"
 defines the X11 geometry string, which will fixate the height and width of
@@ -69,7 +69,7 @@ will set the WM_CLASS attribute to
 will set the absolute or relative position of where to start a new tab. When
 .I pos
 is is given without 's' in front it is an absolute position. Then negative
-numbers will be the position from the last tab, where -1 is the last tab.
+numbers will be the position from the last tab, where \-1 is the last tab.
 If 's' is given, then
 .I pos
 is a relative position to the current selected tab. If this reaches the limits
@@ -147,15 +147,15 @@ jumps to nth tab
 .B F11
 Toggle fullscreen mode.
 .SH EXAMPLES
-$ tabbed surf -e
+$ tabbed surf \-e
 .TP
-$ tabbed urxvt -embed
+$ tabbed urxvt \-embed
 .TP
-$ tabbed xterm -into
+$ tabbed xterm \-into
 .TP
-$ $(tabbed -d >/tmp/tabbed.xid); urxvt -embed $(</tmp/tabbed.xid);
+$ xid=$(tabbed \-d);urxvt \-embed $xid
 .TP
-$ tabbed -r 2 st -w '' -e tmux
+$ tabbed \-r 2 st \-w '' \-e tmux
 .SH CUSTOMIZATION
 .B tabbed
 can be customized by creating a custom config.h and (re)compiling the source
--- a/slstatus/slstatus.1
+++ b/slstatus/slstatus.1
@@ -14,9 +14,10 @@ is a small tool for providing system sta
 over the EWMH
 .Em WM_NAME
 property of the root window (used by
-.Xr dwm 1 ) or standard input/output. It is designed to be as efficient as possible by
+.Xr dwm 1 ) or standard input/output.
+It is designed to be as efficient as possible by
 only issuing the minimum of system calls required.
-.P
+.Pp
 By default,
 .Nm
 outputs to WM_NAME.