解决prompt 代码块开头不显示的bug
This commit is contained in:
@ -292,10 +292,12 @@ def diff_list(txt='', percent=0.70, switch: list = None, lst: list = None, sp=15
|
|||||||
# 判断有没有传需要匹配的字符串,有则筛选、无则全返
|
# 判断有没有传需要匹配的字符串,有则筛选、无则全返
|
||||||
if txt == '' and len(key[0]) >= sp:
|
if txt == '' and len(key[0]) >= sp:
|
||||||
show = key[0][0:sp] + " . . . " + end
|
show = key[0][0:sp] + " . . . " + end
|
||||||
|
show = show.replace('<', '')
|
||||||
elif txt == '' and len(key[0]) < sp:
|
elif txt == '' and len(key[0]) < sp:
|
||||||
show = key[0][0:sp]
|
show = key[0][0:sp]
|
||||||
|
show = show.replace('<', '')
|
||||||
else:
|
else:
|
||||||
show = str(key[0][start:index + sp]).replace(txt, html_tag_color(txt))
|
show = str(key[0][start:index + sp]).replace('<', '').replace(txt, html_tag_color(txt))
|
||||||
show += f" {html_tag_color(' X ' + str(key[1]))}"
|
show += f" {html_tag_color(' X ' + str(key[1]))}"
|
||||||
if lst.get(key[0]):
|
if lst.get(key[0]):
|
||||||
be_value = lst[key[0]]
|
be_value = lst[key[0]]
|
||||||
|
|||||||
Reference in New Issue
Block a user