def frewrite(text)
# let the library name appear in the header
- buf = [text[0].gsub!("\" \"", "\" \"\" \"")]
+ buf = [text[0].gsub!(/\" \"/, "\" \"\" \"")]
title = text[0].split(" ")[1].chop!.reverse.chop!.reverse
text.each_with_index{|line,i|
### TEST 6/24
- line.gsub!(".RS 4","")
+ line.gsub!(/^\.RS 4/,"")
### letting verbatim end in place
- line.gsub!(/^.nf/,".NF")
+ line.gsub!(/^\.nf/,".NF")
#removing "More..." hyperlink
line.gsub!(/More.../,"")
# let the library name appear in the header
if line =~ /^.TH/
- line = line.gsub!("\" \"", "\" \"\" \"")
+ line = line.gsub!(/\" \"/, "\" \"\" \"")
end
# finding structure documentations and merging into "structures"
#removing author section
line.gsub!(/^\.SH\s\"AUTHOR\"/,"")
- line.gsub!("Generated automatically by Doxygen for m17n_test from the source code.","")
+ line.gsub!(/Generated automatically by Doxygen for m17n_test from the source code\./,"")
line.gsub!(/\\fP\s+,/,"\\fP,")
line.gsub!(/\\fP\s+\./,"\\fP.")