summaryrefslogtreecommitdiff
path: root/libexec/makewhatis
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-24 14:08:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-24 14:08:21 +0000
commit2bcfe2311f965a8a952eaa3955ed3c73126cf137 (patch)
tree6e670ae8e1cf857c2a7c59f02e83c0d621c349f5 /libexec/makewhatis
parent771027b5c3d2fac2b40b57885cb40daf0af7535f (diff)
deal with the new .Aq in perl manpages production.
- handle .ie, .el minimally - define \(aq as the ' symbol.
Diffstat (limited to 'libexec/makewhatis')
-rw-r--r--libexec/makewhatis/OpenBSD/Makewhatis/Unformated.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/makewhatis/OpenBSD/Makewhatis/Unformated.pm b/libexec/makewhatis/OpenBSD/Makewhatis/Unformated.pm
index e2b124aa934..bfd2fc434e6 100644
--- a/libexec/makewhatis/OpenBSD/Makewhatis/Unformated.pm
+++ b/libexec/makewhatis/OpenBSD/Makewhatis/Unformated.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Unformated.pm,v 1.3 2005/01/13 11:22:24 espie Exp $
+# $OpenBSD: Unformated.pm,v 1.4 2009/12/24 14:08:20 espie Exp $
# Copyright (c) 2000-2004 Marc Espie <espie@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
@@ -50,6 +50,8 @@ sub add_unformated_subject
s/\\\|\\\(em\\\|/-/g;
# em dashes
s/\\\(em\s+/- /g;
+ # single quotes
+ s/\\\(aq/\'/g;
# em dashes in the middle of lines
s/\\\(em/-/g;
s/\\\*[LO]//g;
@@ -114,7 +116,8 @@ sub handle
next unless m/^\./ || $found_old || $found_new;
next if m/^\.\\\"/;
next if m/^\.if\s+t\s+/;
- s/^\.if\s+n\s+//;
+ s/^\.i[ef]\s+n\s+//;
+ s/^\.i[ef]\s+\\n\(\.g\s+//;
if (m/^\.\s*de/) {
while (<$f>) {
last if m/^\.\s*\./;