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