mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
UI: increase the threshold for a <li> to be considered long (some more)
This commit is contained in:
parent
ee3a533e5c
commit
0490ee620a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()) > 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:
|
||||
# Add class="long-list" to the opening tag if it doesn't already have a class
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue