summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-04-03 16:33:50 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-04-03 16:33:50 +0000
commit4b84b33636d9bab5adb97f749b1e7890faf73f19 (patch)
treeab5f1e8139222f46278f10c58364efcbd0a4cf9f
parent37a08a2790f36b4be739d4315af0b7f38149b171 (diff)
throw \v and \h alignments out.
-rw-r--r--libexec/makewhatis/makewhatis.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/makewhatis/makewhatis.pl b/libexec/makewhatis/makewhatis.pl
index 1852f5569b3..d66dba58160 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.18 2001/03/14 10:58:05 espie Exp $
+# $OpenBSD: makewhatis.pl,v 1.19 2001/04/03 16:33:49 espie Exp $
#
# Copyright (c) 2000 Marc Espie.
#
@@ -157,6 +157,9 @@ sub add_unformated_subject
s/\\\(tm/(tm)/g;
# font changes
s/\\f[BIRP]//g;
+ # fine space adjustments
+ while (s/\\[vh]\'.*?\'//g)
+ {}
unless (s/\s+\\-\s+/ ($section) - / || s/\\\-/($section) -/ ||
s/\s-\s/ ($section) - /) {
print STDERR "Weird subject line in $filename:\n$_\n" if $picky;