$NetBSD$

--- 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("\\}","");
 }
 
 /@\*/ {
