Skip to content

Commit 8861f27

Browse files
committed
Fixed after merge
1 parent 263e4bc commit 8861f27

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

spotify_monitor.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,8 +2653,6 @@ def resolve_truncate_chars(cli_value, configured_value, logging_disabled):
26532653
debug_print("Detecting terminal screen size")
26542654
terminal_size = shutil.get_terminal_size()
26552655
print(f"The detected terminal screen width is: {terminal_size.columns} characters\n")
2656-
if ALT_VIEW:
2657-
print_to_screen(f"The detected terminal screen width is: {terminal_size.columns} characters\n")
26582656
return terminal_size.columns
26592657
return truncate_chars
26602658

@@ -6039,11 +6037,19 @@ def build_startup_summary(target: str, config_path, env_path, output_path) -> Li
60396037

60406038
# Formats one startup summary row with aligned plain ASCII columns
60416039
def _format_startup_summary_row(row: StartupSummaryRow) -> str:
6040+
if row.label.startswith("---"):
6041+
return f"* {(row.label)}{row.value}\n"
60426042
prefix = f"* {(row.label + ':'):<30}"
60436043
if row.label in ("Notifications (email)", "Notifications (webhook)"):
60446044
return textwrap.fill(row.value, width=100, initial_indent=prefix, subsequent_indent=" " * len(prefix), break_long_words=False, break_on_hyphens=False) + "\n"
60456045
return f"{prefix}{row.value}\n"
60466046

6047+
def _format_startup_summary_row(row: StartupSummaryRow) -> str:
6048+
if row.label.startswith("---"):
6049+
return f"* {(row.label)}{row.value}\n"
6050+
else:
6051+
return f"* {(row.label + ':'):<27}{row.value}\n"
6052+
60476053

60486054
# Routes concise or complete startup rows independently to terminal and log destinations
60496055
def emit_startup_summary(rows: Sequence[StartupSummaryRow], show_full: bool, stream=None) -> None:

0 commit comments

Comments
 (0)