From 9564990d4953d9db16857d09c029ffd9eb608f91 Mon Sep 17 00:00:00 2001 From: nisikimi Date: Tue, 8 Jul 2003 05:31:32 +0000 Subject: [PATCH 1/1] *** empty log message *** --- utils/mkman.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/mkman.rb b/utils/mkman.rb index cb9cad3..00866d4 100644 --- a/utils/mkman.rb +++ b/utils/mkman.rb @@ -261,14 +261,15 @@ def desrewrite(text) if line =~ /Return\svalue:/ returndescribed = true end - line.gsub!(/^\\fBReturn value:\\fP/,"\n.SH RETURNS\n.PP") + line.gsub!(/^\\fBReturn value:\\fP/,"\n.SH RETURN VALUE\n.PP") if line =~ /Errors:/ errordescribed = true end line.gsub!(/^\\fBErrors:\\fP/,"\n.SH ERRORS\n.PP") line.gsub!(/^\\fBSee Also:\\fP/,"\n.SH \"SEE ALSO\"\n.PP") - line.gsub!(/^\\fB(.+)\\fP/){"\n.SS " << $1} + line.gsub!(/^\\fB(.+)[^\)]\\fP/){"\n.SS " << $1} + # [^\)] in the pattern is added to avoid the first function in see also section. #removing indentation if text[i - 1] =~ /^.PP/ -- 1.7.10.4