ruby-changes:42059
From: nobu <ko1@a...>
Date: Thu, 17 Mar 2016 00:04:15 +0900 (JST)
Subject: [ruby-changes:42059] nobu:r54133 (trunk): transcode-tblgen.rb: chomp invalid line
nobu 2016-03-17 00:04:11 +0900 (Thu, 17 Mar 2016) New Revision: 54133 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54133 Log: transcode-tblgen.rb: chomp invalid line * tool/transcode-tblgen.rb (citrus_decode_mapsrc): remove newline from invalid line in exception messages. Modified files: trunk/tool/transcode-tblgen.rb Index: tool/transcode-tblgen.rb =================================================================== --- tool/transcode-tblgen.rb (revision 54132) +++ tool/transcode-tblgen.rb (revision 54133) @@ -731,7 +731,7 @@ def citrus_decode_mapsrc(ces, csid, maps https://github.com/ruby/ruby/blob/trunk/tool/transcode-tblgen.rb#L731 end f.each_line do |l| next if /^\s*(?:#|$)/ =~ l - break if /^END_MAP/ =~ l + break if /^END_MAP/ =~ l case mode when :from_ucs case l @@ -740,14 +740,14 @@ def citrus_decode_mapsrc(ces, csid, maps https://github.com/ruby/ruby/blob/trunk/tool/transcode-tblgen.rb#L740 when /(0x\w+)\s*=\s*(0x\w+)/ table.push << [plane | $1.hex, citrus_cstomb(ces, csid, $2.hex)] else - raise "unknown notation '%s'"% l + raise "unknown notation '%s'"% l.chomp end when :to_ucs case l when /(0x\w+)\s*=\s*(0x\w+)/ table.push << [citrus_cstomb(ces, csid, $1.hex), plane | $2.hex] else - raise "unknown notation '%s'"% l + raise "unknown notation '%s'"% l.chomp end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/