mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-16 06:17:50 +00:00
Add proper support for double width characters to legacy mode and few related formatting functions
This commit is contained in:
parent
415bc22dd9
commit
a2c347a79c
@ -230,4 +230,4 @@ def pad_string(string, length, character=" ", side="right"):
|
|||||||
if side == "left":
|
if side == "left":
|
||||||
return "%s%s" % (character * diff, string)
|
return "%s%s" % (character * diff, string)
|
||||||
elif side == "right":
|
elif side == "right":
|
||||||
return "%s%s" % (string, character * diff)
|
return "%s%s" % (string, character * diff)
|
Loading…
x
Reference in New Issue
Block a user