X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=utils%2Fmkman.rb;h=00866d483b6b5aed0ececbc879c40d68f681c460;hp=cb9cad3c00bcc6c02642ef0cb5cf589a698721a1;hb=9564990d4953d9db16857d09c029ffd9eb608f91;hpb=f233214188d61276924763106f3e6ad4849e63ce 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/