From 89888bef56018099b95e04317c9393f1952c5aa7 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:38:36 -0800 Subject: [PATCH] UI: increase the threshold for a
  • to be considered long --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index 57eac1b1..0d831af2 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -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