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:
parent
08e428d376
commit
813528682c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue