lib/review/md2inaobuilder.rb in review-2.3.0 vs lib/review/md2inaobuilder.rb in review-2.4.0

- old
+ new

@@ -1,33 +1,29 @@ -# -*- coding: utf-8 -*- # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. require 'review/markdownbuilder' module ReVIEW - class MD2INAOBuilder < MARKDOWNBuilder def paragraph(lines) - puts " " + lines.join + puts ' ' + lines.join puts "\n" end def list_header(id, caption, lang) - lang ||= "" + lang ||= '' puts "```#{lang}" - print %Q[●リスト#{@chapter.list(id).number}::#{compile_inline(caption)}\n\n] + print %Q(●リスト#{@chapter.list(id).number}::#{compile_inline(caption)}\n\n) end def cmd(lines) # WEB+DB では使っていないらしいけど - puts "!!! cmd" - lines.each do |line| - puts detab(line) - end - puts "" + puts '!!! cmd' + lines.each { |line| puts detab(line) } + puts '' end def dl_begin puts '<dl>' end @@ -49,9 +45,7 @@ %Q[<span class='monoruby'>#{escape_html(base)}(#{escape_html(ruby)})</span>] else %Q[<span class='groupruby'>#{escape_html(base)}(#{escape_html(ruby)})</span>] end end - end - end # module ReVIEW