mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Lower cross-ref expand threshold to 120 chars
More cross-refs will auto-expand now with the lower threshold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -265,8 +265,8 @@ async def read_chapter(request: Request, book: str, chapter: int):
|
||||
# Check next verse length - long verse = more margin room
|
||||
next_verse = verse_list[i + 1] if i + 1 < len(verse_list) else None
|
||||
next_verse_len = len(next_verse.text) if next_verse else 0
|
||||
# Expand if next verse is 150+ chars (provides margin space)
|
||||
commentary['xref_auto_expand'] = next_verse_len >= 150
|
||||
# Expand if next verse is 120+ chars (provides margin space)
|
||||
commentary['xref_auto_expand'] = next_verse_len >= 120
|
||||
|
||||
# Generate chapter overview
|
||||
chapter_overview = generate_chapter_overview(book, chapter, verses)
|
||||
|
||||
Reference in New Issue
Block a user