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:
parent
3a86385ca3
commit
119beb272c
@ -731,7 +731,7 @@ def citrus_decode_mapsrc(ces, csid, mapsrcs)
|
|||||||
end
|
end
|
||||||
f.each_line do |l|
|
f.each_line do |l|
|
||||||
next if /^\s*(?:#|$)/ =~ l
|
next if /^\s*(?:#|$)/ =~ l
|
||||||
break if /^END_MAP/ =~ l
|
break if /^END_MAP/ =~ l
|
||||||
case mode
|
case mode
|
||||||
when :from_ucs
|
when :from_ucs
|
||||||
case l
|
case l
|
||||||
@ -740,14 +740,14 @@ def citrus_decode_mapsrc(ces, csid, mapsrcs)
|
|||||||
when /(0x\w+)\s*=\s*(0x\w+)/
|
when /(0x\w+)\s*=\s*(0x\w+)/
|
||||||
table.push << [plane | $1.hex, citrus_cstomb(ces, csid, $2.hex)]
|
table.push << [plane | $1.hex, citrus_cstomb(ces, csid, $2.hex)]
|
||||||
else
|
else
|
||||||
raise "unknown notation '%s'"% l
|
raise "unknown notation '%s'"% l.chomp
|
||||||
end
|
end
|
||||||
when :to_ucs
|
when :to_ucs
|
||||||
case l
|
case l
|
||||||
when /(0x\w+)\s*=\s*(0x\w+)/
|
when /(0x\w+)\s*=\s*(0x\w+)/
|
||||||
table.push << [citrus_cstomb(ces, csid, $1.hex), plane | $2.hex]
|
table.push << [citrus_cstomb(ces, csid, $1.hex), plane | $2.hex]
|
||||||
else
|
else
|
||||||
raise "unknown notation '%s'"% l
|
raise "unknown notation '%s'"% l.chomp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user