summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-02-11 18:50:44 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-02-11 18:50:44 +0000
commitc864b3dbb9945b95505eec740b241ebe6bb7d2c4 (patch)
tree3f1d928c7e0f404c299b9d96dd6636747c3242a2
parent9122d1bb12ef583185b4018ce75161ab6345c835 (diff)
some sections came out wrong (no space) in SDL.
ggi has func, func2, func3 : description, give it a fighting chance.
-rw-r--r--libexec/makewhatis/makewhatis.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl
index 6ee74ec8f42..34932c76a38 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.27 2004/02/11 18:48:43 espie Exp $
+# $OpenBSD: makewhatis.pl,v 1.28 2004/02/11 18:50:43 espie Exp $
#
# Copyright (c) 2000 Marc Espie.
#
@@ -186,11 +186,11 @@ sub add_unformated_subject
# fine space adjustments
while (s/\\[vh]\'.*?\'//g)
{}
- unless (s/\s+\\-\s+/ ($section) - / || s/\\\-/($section) -/ ||
+ unless (s/\s+\\-\s+/ ($section) - / || s/\s*\\\-/ ($section) -/ ||
s/\s-\s/ ($section) - /) {
print STDERR "Weird subject line in $filename:\n$_\n" if $picky;
# Try guessing where the separation falls...
- s/\S+\s+/$& ($section) - / || s/\s*$/ ($section) - (empty subject)/;
+ s/\s+\:\s+/ ($section) - / || s/\S+\s+/$& ($section) - / || s/\s*$/ ($section) - (empty subject)/;
}
# other dashes
s/\\-/-/g;