bug-sed
[Top][All Lists]
Advanced

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

bug#30479: [PATCH] sed.x: Some formatting corrections


From: Bjarni Ingi Gislason
Subject: bug#30479: [PATCH] sed.x: Some formatting corrections
Date: Fri, 16 Feb 2018 01:32:35 +0000
User-agent: Mutt/1.5.20 (2009-12-10)

Test nr. 14: Change a two-fonts macro to an one-font macro.

236:.IR number

#####

Test nr. 19: Use a macro to change to italic font

21:permits scripted edits (such as \fIed\fP),
70:q [\fIexit-code\fR]
76:Q [\fIexit-code\fR]
317:The \fI-E\fP option switches to using extended regular expressions instead;

#####

Test nr. 23: Change a HYPHEN-MINUS (code 0x55, 2D) to a dash
(\-, minus) if it matches " -[:alpha:]" or \(aq-[:alpha:] (for options)

246:For example, ``sed -n 1~2p'' will print all the odd-numbered lines in
317:The \fI-E\fP option switches to using extended regular expressions instead;
318:the -E option has been supported for years by GNU sed, and is now

#####

  Additionally:

  separate some sentences (clauses)

  use a pronoun instead of a repeated noun.

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 doc/sed.x | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/doc/sed.x b/doc/sed.x
index b2e0beb..eae323d 100644
--- a/doc/sed.x
+++ b/doc/sed.x
@@ -18,7 +18,8 @@ A stream editor is used to perform basic text
 transformations on an input stream
 (a file or input from a pipeline).
 While in some ways similar to an editor which
-permits scripted edits (such as \fIed\fP),
+permits scripted edits (such as
+.IR ed ),
 \*(sd works by making only one pass over the
 input(s), and is consequently more efficient.
 But it is \*(sd's ability to filter text in a pipeline
@@ -42,7 +43,7 @@ commands.
 .TP
 .RI # comment
 The comment extends until the next newline (or the end of a
-.B -e
+.B \-e
 script fragment).
 .TP
 }
@@ -67,13 +68,15 @@ Insert
 .IR text ,
 which has each embedded newline preceded by a backslash.
 .TP
-q [\fIexit-code\fR]
+q \c
+.RI [ exit-code ]
 Immediately quit the \*(sd script without processing
 any more input, except that if auto-print is not disabled
 the current pattern space will be printed.  The exit code
 argument is a GNU extension.
 .TP
-Q [\fIexit-code\fR]
+Q \c
+.RI [ exit-code ]
 Immediately quit the \*(sd script without processing
 any more input.  This is a GNU extension.
 .TP
@@ -233,9 +236,9 @@ The following address types are supported:
 .TP
 .I number
 Match only the specified line
-.IR number
+.I number
 (which increments cumulatively across files, unless the
-.B -s
+.B \-s
 option is specified on the command line).
 .TP
 .IR first ~ step
@@ -243,7 +246,7 @@ Match every
 .IR step 'th
 line starting with line
 .IR first .
-For example, ``sed -n 1~2p'' will print all the odd-numbered lines in
+For example, ``sed \-n 1~2p'' will print all the odd-numbered lines in
 the input stream, and the address 2~5 will match every fifth line,
 starting with the second.
 .I first
@@ -314,9 +317,11 @@ and similarly for
 .BR \ea ,
 .BR \et ,
 and other sequences.
-The \fI-E\fP option switches to using extended regular expressions instead;
-the -E option has been supported for years by GNU sed, and is now
-included in POSIX.
+The
+.I \-E
+option switches to using extended regular expressions instead;
+It has been supported for years by GNU sed,
+and is now included in POSIX.
 
 [SEE ALSO]
 .BR awk (1),
@@ -334,5 +339,5 @@ http://sed.sf.net/grabbag/.
 .PP
 E-mail bug reports to
 .BR address@hidden .
-Also, please include the output of ``sed --version'' in the body
+Also, please include the output of ``sed \-\-version'' in the body
 of your report if at all possible.
-- 
2.15.1

-- 
Bjarni I. Gislason





reply via email to

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