diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-16 15:04:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-16 15:04:11 +0000 |
commit | 119beb272c7329d94645b394d4ffd65b9894089b (patch) | |
tree | 2aa8d4baf388ac0571625590e7f5850c19874d4c | |
parent | 3a86385ca3cef2cb4b3ba8d9ef18d54f666f05cc (diff) |
transcode-tblgen.rb: chomp invalid line
* tool/transcode-tblgen.rb (citrus_decode_mapsrc): remove newline
from invalid line in exception messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | tool/transcode-tblgen.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index dc1c4062e9..ec417ec5b0 100644 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -731,7 +731,7 @@ def citrus_decode_mapsrc(ces, csid, mapsrcs) 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, mapsrcs) 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 |