1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-03-16 15:04:11 +00:00
parent 3a86385ca3
commit 119beb272c

View file

@ -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