style: Add line breaks before banner display (#8732)

📝 (langflow/__main__.py): add line breaks before printing banners for better readability and separation of content

Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
This commit is contained in:
Cristhian Zanforlin Lousa 2025-06-25 15:13:29 -03:00 committed by GitHub
commit 813528682c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -603,6 +603,7 @@ def print_banner(host: str, port: int, protocol: str) -> None:
# Handle Unicode encoding errors on Windows
try:
console.print() # Add line break before banner
console.print(Panel.fit(message, border_style="#7528FC", padding=(1, 2)))
except UnicodeEncodeError:
# Fallback to a simpler banner without emojis for Windows systems with encoding issues
@ -614,6 +615,7 @@ def print_banner(host: str, port: int, protocol: str) -> None:
f"[OK] Open Langflow -> {protocol}://{access_host}:{port}"
)
try:
console.print() # Add line break before fallback banner
console.print(Panel.fit(fallback_message, border_style="#7528FC", padding=(1, 2)))
except UnicodeEncodeError:
# Last resort: use logger instead of print