lib/review/ewbbuilder.rb in review-2.0.0.beta1 vs lib/review/ewbbuilder.rb in review-2.0.0

- old
+ new

@@ -32,11 +32,11 @@ # raise SyntaxError, "unknown //emlist option: #{args[0]}" # end # } def emlist(lines, caption = nil) - firstline = f.lineno + # firstline = f.lineno puts puts caption puts '//lst1' lines.each do |line| if noescape @@ -60,11 +60,11 @@ puts caption puts '//sc1{' lines.each do |line| if noescape puts detab(line) - elsif /\AC:.*?>(.+)/ =~ line # DOS prompt hack + elsif /\AC:.*?>(.+)/ =~ line # DOS prompt hack prompt, cmd = *line.split('>', 2) puts "#{escape(prompt)}>//command{#{escape(cmd)}}//}" else puts escape(detab(line)) end @@ -196,11 +196,11 @@ def cascade(f) # FIXME end - Z_SPACE = "\241\241" # zen-kaku space in EUC-JP + Z_SPACE = "\241\241" # zen-kaku space in EUC-JP def paragraph(lines) if @noindent @noindent = false else @@ -261,13 +261,13 @@ def inline_kw(arg) word, eng, abbr = arg.split(/,/).map {|s| s.strip } if abbr add_index(word) + "//g{#{word}//}" + add_index(abbr) + "(#{abbr}, " + - add_index(eng) + "#{eng})" + add_index(eng) + "#{eng})" elsif eng add_index(word) + "//g{#{word}//}" + - add_index(eng) + "(#{eng})" + add_index(eng) + "(#{eng})" else add_index(word) + "//g{#{word}//}" end end