mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
add character to lookup output
This commit is contained in:
@@ -494,7 +494,8 @@ def command_unicode_lookup(argv, **args):
|
||||
lines = []
|
||||
|
||||
for code, name in characters.items():
|
||||
lines.append("Code {} is named \"{}\"".format(code, name))
|
||||
char = chr(int(code, 16))
|
||||
lines.append("Character \"{}\" with code {} is named \"{}\"".format(char, code, name))
|
||||
if len(lines) > 9:
|
||||
lines.append("warning: limit (10) reached.")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user