1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 03:03:50 +01:00
This commit is contained in:
J. Nick Koston
2025-10-17 15:26:55 -10:00
parent 5e9b972831
commit 922c2bcd5a
2 changed files with 35 additions and 11 deletions

View File

@@ -159,14 +159,12 @@ def create_symbol_changes_table(
change_str = format_change(target_size, pr_size)
# Truncate very long symbol names but show full name in title attribute
if len(symbol) <= 100:
display_symbol = symbol
display_symbol = f"`{symbol}`"
else:
# Use HTML details for very long symbols
display_symbol = (
f"<details><summary>{symbol[:97]}...</summary>{symbol}</details>"
)
# Use HTML details for very long symbols (no backticks inside HTML)
display_symbol = f"<details><summary><code>{symbol[:97]}...</code></summary><code>{symbol}</code></details>"
lines.append(
f"| `{display_symbol}` | {target_str} | {pr_str} | {change_str} |"
f"| {display_symbol} | {target_str} | {pr_str} | {change_str} |"
)
if len(changed_symbols) > 30: