Source-Changes-HG archive

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

[src/trunk]: src/distrib/notes/common Collapse multiple spaces between words.



details:   https://anonhg.NetBSD.org/src/rev/9ff66e120f88
branches:  trunk
changeset: 465704:9ff66e120f88
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Dec 02 16:38:37 2019 +0000

description:
Collapse multiple spaces between words.
There are a few entries with "by__Name" that affects sorting.

diffstat:

 distrib/notes/common/extract-contrib-string.pl |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 5051c6c5dd11 -r 9ff66e120f88 distrib/notes/common/extract-contrib-string.pl
--- a/distrib/notes/common/extract-contrib-string.pl    Mon Dec 02 16:35:18 2019 +0000
+++ b/distrib/notes/common/extract-contrib-string.pl    Mon Dec 02 16:38:37 2019 +0000
@@ -236,6 +236,10 @@
                $msg =~ s/^\"//o;
                $msg =~ s/\"$//o;
 
+               # Collapse multiple spaces between words.  There are a
+               # few entries with "by__Name" that affects sorting.
+               $msg =~ s/(\w)  +(\w)/$1 $2/g;
+
                # Split up into separate paragraphs
                #
                $msgs=$msg;



Home | Main Index | Thread Index | Old Index