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

From: Assaf Gordon <[email-masked]>
Date: Mon, 8 Oct 2018 19:12:47 -0600

Hello,

On 15/02/18 06:32 PM, Bjarni Ingi Gislason wrote:

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

Thank you for the report and the patch (and sorry for the late reply).

Attached is a patch containing a subset of your suggestions (dash to 
minus + pronoun).

These are trivial and are also small enough to push without copyright 
assignment. I'll push soon if there are no objections.

As for the font changes - what is the reason for them?
(e.g. is there some recommendation of which font should be used for 
which type of content?)

Regards,
  - assaf
>From 3d5e4ba0a898e453345071cc237062db98c5905d Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <[email-masked]>
Date: Mon, 8 Oct 2018 19:05:44 -0600
Subject: [PATCH] doc: sed.x: some formatting corrections

Reported in https://bugs.gnu.org/30479 .

doc/sed.x: Change a HYPHEN-MINUS (code 0x55, 2D) to a dash (\-, minus)
if it matches " -[:alpha:]" or \(aq-[:alpha:] (for options); Use a pronoun
instead of a repeated noun.
Copyright-paperwork-exempt: Yes
---
 doc/sed.x | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/sed.x b/doc/sed.x
index b2e0beb..1059382 100644
--- a/doc/sed.x
+++ b/doc/sed.x
@@ -42,7 +42,7 @@ commands.
 .TP
 .RI # comment
 The comment extends until the next newline (or the end of a
-.B -e
+.B \-e
 script fragment).
 .TP
 }
@@ -235,7 +235,7 @@ The following address types are supported:
 Match only the specified line
 .IR 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 +243,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
@@ -315,7 +315,7 @@ and similarly for
 .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
+it has been supported for years by GNU sed, and is now
 included in POSIX.
 
 [SEE ALSO]
@@ -334,5 +334,5 @@ http://sed.sf.net/grabbag/.
 .PP
 E-mail bug reports to
 .BR [email-masked] .
-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.11.0