X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=utils%2Fmkman.rb;h=b136889fcb04597a2e9ba370fa1677fbfee147bc;hp=76013f8a8f3daec51fe2353768ef49ae183086a9;hb=392aab7e84a0c980a2a86d52c21e34dae92fd3eb;hpb=bb054a3462970692a996b81cd7efedc9eadeb530 diff --git a/utils/mkman.rb b/utils/mkman.rb index 76013f8..b136889 100644 --- a/utils/mkman.rb +++ b/utils/mkman.rb @@ -247,14 +247,25 @@ def desrewrite(text) ind = text.index(line) text.delete_at(ind+1) if text[ind+1] == (".in +1c\n")} +### letting verbatim end in place Part1 + verbatim = false text.each_with_index{|line,i| ### TEST 6/24 line.gsub!(/^\.RS 4/,"") -### letting verbatim end in place - line.gsub!(/^\.nf/,".NF") +### letting verbatim end in place Part2 + if line =~ /^\.nf/ + verbatim = true + end + + if verbatim == true + if line =~ /^\.PP/ + line.gsub!(/^\.PP/,".fi") + verbatim = false + end + end #removing "More..." hyperlink line.gsub!(/More.../,"")