From 7bcf66a2258574677197e39f18a6c6d306eb2c17 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 10 Dec 2010 03:58:32 +0000 Subject: [PATCH] (orewrite): Workaround the doxygen problem of inserting ".PP" before @brief text. --- utils/mkman.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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"] -- 1.7.10.4