Skip to contentSkip to conversation

doc: fix quoted string in libxt_DNETMAP man-page.

PATCH Superseded Jeremy Sowden 2 participants 3 messages Jul 21, 2020 netfilter

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix quoted string in libxt_DNETMAP man-page.

In roff, lines beginning with a single quote are control lines. In the libxt_DNETMAP man-page there is a single-quoted string at the beginning of a line, which troff tries and fails to interpret as a macro:

troff: <standard input>:49: warning: macro 'S'' not defined

This means that the line is not output.

Adjust the formatting of the paragraph to move the string from the beginning of the line.

Fixes 2b38d081a50b ("doc: spelling and grammar corrections to DNETMAP")
---
 extensions/libxt_DNETMAP.man | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
extensions/libxt_DNETMAP.man +2 -2
index 7a8fe404435b..56cd2a68c6e6 100644
@@ -45,8 +45,8 @@ The module creates the following entries for each new specified subnet:
 Contains the binding table for the given \fIsubnet/mask\fP. Each line contains
 \fBprenat address\fR, \fBpostnat address\fR, \fBttl\fR (seconds until the entry
 times out), \fBlasthit\fR (last hit to the entry in seconds relative to system
-boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain an
-'\fBS\fR' in case of a static binding.
+boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain
+an '\fBS\fR' in case of a static binding.
 .TP
 \fB/proc/net/xt_DNETMAP/\fR\fIsubnet\fR\fB_\fR\fImask\fR\fB_stat\fR
 Contains statistics for a given \fIsubnet/mask\fP. The line contains four
Signature · 1 line
2.27.0
#1 lore raw
Quoted 3 lines · Jeremy Sowden

In roff, lines beginning with a single quote are control lines. In the libxt_DNETMAP man-page there is a single-quoted string at the beginning of a line, which troff tries and fails to interpret as a macro:

Is there some escaping magic available that would make this work as well? I would fear that if the next person (me included) comes around to use an editor's "wrap at 80 cols" feature, that the quote might re-shift to the start of line. If all else, I'd just pick " over ' - in the hope that that does not have a special meaning.

Quoted 4 lines
extensions/libxt_DNETMAP.man +2 -2
-boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain an
-'\fBS\fR' in case of a static binding.
+boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain
+an '\fBS\fR' in case of a static binding.
#2 lore raw
Quoted 11 lines · Jan Engelhardt
Quoted 4 lines · Jeremy Sowden

In roff, lines beginning with a single quote are control lines. In the libxt_DNETMAP man-page there is a single-quoted string at the beginning of a line, which troff tries and fails to interpret as a macro:

Is there some escaping magic available that would make this work as well? I would fear that if the next person (me included) comes around to use an editor's "wrap at 80 cols" feature, that the quote might re-shift to the start of line. If all else, I'd just pick " over ' - in the hope that that does not have a special meaning.

Good point. I had another look at the documentation and found escape- sequences for opening and closing single quotes. I'll send out a new version of the patch.

Quoted 4 lines

extensions/libxt_DNETMAP.man The module creates the following entries for each new specified subnet: · line 49

Quoted 4 lines
extensions/libxt_DNETMAP.man +2 -2
-boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain an
-'\fBS\fR' in case of a static binding.
+boot time). Please note that the \fBttl\fR and \fBlasthit\fR entries contain
+an '\fBS\fR' in case of a static binding.

J.