From: handa Date: Fri, 10 Dec 2010 03:58:32 +0000 (+0000) Subject: (orewrite): Workaround the doxygen problem of inserting ".PP" before X-Git-Tag: REL-1-6-2~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7bcf66a2258574677197e39f18a6c6d306eb2c17;p=m17n%2Fm17n-docs.git (orewrite): Workaround the doxygen problem of inserting ".PP" before @brief text. --- diff --git a/utils/mkman.rb b/utils/mkman.rb index cae420c..1e73bd6 100644 --- a/utils/mkman.rb +++ b/utils/mkman.rb @@ -1,5 +1,5 @@ #! /usr/local/bin/ruby -# Usage: mkman.rb SRCDIR DSTDIR -*- coding: euc-japan; -*- +# Usage: mkman.rb SRCDIR DSTDIR -*- coding: euc-jp; -*- #¼Â¹Ô¤¹¤ë¤È/tmp/doxyman¤ò¤Ä¤«¤Ã¤Æ¥Õ¥¡¥¤¥ë¤òʬ¤±¡¢ #¤â¤È¤Îdirectory¤Ë¤«¤­¤Ê¤ª¤¹¡£ @@ -416,6 +416,18 @@ def orewrite(text) # end # end + if text[i-2] =~ /^.SH\sNAME/ && text[i] =~ /^.PP/ && text[i+1] =~ /./ + # Convert this line sequence: + # .SH NAME + # M-text \- + # .PP + # 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]) + else #removing author section line.gsub!(/^\.SH\s\"AUTHOR\"/,"") line.gsub!(/Generated automatically by Doxygen for m17n_test from the source code\./,"") @@ -427,8 +439,8 @@ def orewrite(text) line.gsub!(/\\fP\s+,/,"\\fP,") line.gsub!(/\\fP\s+\./,"\\fP.") line.gsub!(/\\fC\\fB(\w+)\\fP\\fP/){"\\fB" << $1 << "\\fP"} - buf.push(line) + end } unless structures == ["\.SH \"Data Structure Documentation\"\n"]