mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Fix missing text if it's before a color tag
This commit is contained in:
parent
9a43ec8258
commit
714cd0ed80
@ -102,6 +102,9 @@ def parse_color_string(s):
|
|||||||
col_index = 0
|
col_index = 0
|
||||||
while s.find("{{") != -1:
|
while s.find("{{") != -1:
|
||||||
begin = s.find("{{")
|
begin = s.find("{{")
|
||||||
|
if begin > 0:
|
||||||
|
ret.append((curses.color_pair(color_pairs[(schemes["input"][0], schemes["input"][1])]), s[:begin]))
|
||||||
|
|
||||||
end = s.find("}}")
|
end = s.find("}}")
|
||||||
if end == -1:
|
if end == -1:
|
||||||
raise BadColorString("Missing closing '}}'")
|
raise BadColorString("Missing closing '}}'")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user