style: auto-fix ruff lint and format

This commit is contained in:
github-actions[bot]
2026-03-03 15:12:33 +00:00
parent 92840ac8e8
commit 95120d6f26
3 changed files with 7 additions and 5 deletions

View File

@@ -184,7 +184,9 @@ def _format_body_content(text_body: str, html_body: str) -> str:
)
# Prefer plain text, but fall back to HTML when plain text is empty or clearly low-value.
use_html = html_text and (not text_stripped or "<!--" in text_stripped or plain_is_low_value)
use_html = html_text and (
not text_stripped or "<!--" in text_stripped or plain_is_low_value
)
if use_html:
content = html_text