build in -current because of a problem in -current's awk, but is desirable anyway to avoid un(der)defined behavior.
42 lines
935 B
Text
42 lines
935 B
Text
$NetBSD: patch-ad,v 1.1 2008/09/08 05:13:12 dholland Exp $
|
|
|
|
--- doc/manpager~ 2001-10-16 10:12:22.000000000 -0400
|
|
+++ doc/manpager 2008-09-08 01:09:13.000000000 -0400
|
|
@@ -32,20 +32,20 @@ SKIP==1 {next}
|
|
# (ARub, Oct 10 2000)
|
|
/@b\{/ {
|
|
#$0 = gensub(/@b\{([^}]+)\}/, "\\\\fB\\1\\\\fP","g");
|
|
- gsub("@b\{","\\fB");
|
|
- gsub("\}","\\fP");
|
|
+ gsub("@b\\{","\\fB");
|
|
+ gsub("\\}","\\fP");
|
|
}
|
|
|
|
/@var\{/ {
|
|
#$0 = gensub(/@var\{([^}]+)\}/, "\\\\fI\\1\\\\fP","g");
|
|
- gsub("@var\{","\\fB");
|
|
- gsub("\}","\\fP");
|
|
+ gsub("@var\\{","\\fB");
|
|
+ gsub("\\}","\\fP");
|
|
}
|
|
|
|
/@(samp|code|file)\{/ {
|
|
#$0 = gensub(/@(samp|code|file)\{([^}]+)\}/, "`\\2'","g");
|
|
- gsub("@(samp|code|file)\{","");
|
|
- gsub("\}","");
|
|
+ gsub("@(samp|code|file)\\{","");
|
|
+ gsub("\\}","");
|
|
}
|
|
|
|
|
|
@@ -54,8 +54,8 @@ SKIP==1 {next}
|
|
}
|
|
|
|
/@ref\{.*\}/ {
|
|
- gsub("@ref\{","");
|
|
- gsub("\}","");
|
|
+ gsub("@ref\\{","");
|
|
+ gsub("\\}","");
|
|
}
|
|
|
|
/@\*/ {
|