mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-09 03:59:05 +01:00
UI: increase the threshold for a <li> to be considered long
This commit is contained in:
parent
2acec386fc
commit
89888bef56
@ -99,7 +99,7 @@ def add_long_list_class(html):
|
||||
|
||||
# Find all list items within this list
|
||||
li_matches = li_pattern.finditer(list_content)
|
||||
has_long_item = any(len(li_match.group(1).strip()) > 128 for li_match in li_matches)
|
||||
has_long_item = any(len(li_match.group(1).strip()) > 160 for li_match in li_matches)
|
||||
|
||||
if has_long_item:
|
||||
# Add class="long-list" to the opening tag if it doesn't already have a class
|
||||
|
Loading…
Reference in New Issue
Block a user