(orewrite): Fix group title.
authorhanda <handa>
Wed, 5 Jan 2011 00:51:25 +0000 (00:51 +0000)
committerhanda <handa>
Wed, 5 Jan 2011 00:51:25 +0000 (00:51 +0000)
utils/mkman.rb

index 1ae1fa9..bad8862 100644 (file)
@@ -466,8 +466,8 @@ def orewrite(text)
       # to:
       #   .SH NAME
       #   M-text \- M-text objects and API for them.
       # to:
       #   .SH NAME
       #   M-text \- M-text objects and API for them.
-      prevline = buf.pop
-      text[i+1] = prevline.chop!.concat(text[i+1])
+      prevline = buf.pop.chop!.chop!.chop!.chop!.chop!.gsub(" ","_").concat(" \\- ")
+      text[i+1] = prevline.concat(text[i+1])
     else
      #removing author section
              line.gsub!(/^\.SH\s\"AUTHOR\"/,"")
     else
      #removing author section
              line.gsub!(/^\.SH\s\"AUTHOR\"/,"")