X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=utils%2Fusr_filter.rb;h=5d336910c7413fc431bd948cd7cd6eba1cf388c5;hp=b09f7fb397afab7d5a8cb18f5f253f2c54126ebb;hb=e36f44e8303ee937fec2a6d86dbc9e573fb842a5;hpb=45928170dc985ff2b0b2ccdbad78c3707aed8d82 diff --git a/utils/usr_filter.rb b/utils/usr_filter.rb index b09f7fb..5d33691 100755 --- a/utils/usr_filter.rb +++ b/utils/usr_filter.rb @@ -49,7 +49,7 @@ while gets when /\/\*\*\*\s.*\*\// #one liner buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n") - when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ + when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ #this is not for En nor users doxy = -1 when /\/\*\*\*en/ buf.push($_.gsub!(/\/\*+en/, " ")) @@ -59,7 +59,7 @@ while gets doxy = 1 when /EXAMPLE_CODE/ - buf.push($_.gsub!(/#if EXAMPLE_CODE/, "@code \n")) + buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code")) doxy = 1 when /#endif/ @@ -88,3 +88,5 @@ while gets end end end + +commentblock(buf)