diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-12-08 13:46:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-12-08 13:46:12 +0000 |
commit | 526e56285be31c0272e3af7b71dd76c0607d9daf (patch) | |
tree | 4b7d35c0eec7b048f3be5bb5aad4822fbb6c0fc8 | |
parent | a89f9bf5fc9c9e3316ad2dabfb98a18c7f73cf64 (diff) |
strip sequences of spaces AFTER stripping other weird characters.
-rw-r--r-- | libexec/makewhatis/makewhatis.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl index d2da37f0c09..ef29797f409 100644 --- a/libexec/makewhatis/makewhatis.pl +++ b/libexec/makewhatis/makewhatis.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl -w # ex:ts=8 sw=4: -# $OpenBSD: makewhatis.pl,v 1.13 2000/11/22 20:32:57 espie Exp $ +# $OpenBSD: makewhatis.pl,v 1.14 2000/12/08 13:46:11 espie Exp $ # # Copyright (c) 2000 Marc Espie. # @@ -158,15 +158,15 @@ sub add_unformated_subject } # other dashes s/\\-/-/g; - # sequence of spaces - s/\s+$//; - s/^\s+//; - s/\s+/ /g; # escaped characters s/\\\&(.)/$1/g; s/\\\|/|/g; # gremlins... s/\\c//g; + # sequence of spaces + s/\s+$//; + s/^\s+//; + s/\s+/ /g; push(@$subjects, $_); verify_subject($_, $filename) if $picky; } |