diff --git a/app/templates/prop_resp.py b/app/templates/prop_resp.py index 9fd521f..28a879f 100644 --- a/app/templates/prop_resp.py +++ b/app/templates/prop_resp.py @@ -6,12 +6,12 @@ def render_prop_resp_block(change: SimplifiedNotification, user_name: str) -> tu data: PropRespData = change.data when = _fmt_time(change.time) text = ( - f"[{when}] {user_name} responded to category proposal(s):\n" + f"[{when}] {user_name}:\n" f" {data.responses}\n" f" Change: {data.category_change}\n" ) html_out = ( - f"

[{when}] {user_name} responded to category proposal(s):
\n" + f"

[{when}] {user_name}:
\n" f"{data.responses}
\n" f"Change: {data.category_change}

\n" ) diff --git a/tests/test_email_content.py b/tests/test_email_content.py index 8af1344..4e27560 100644 --- a/tests/test_email_content.py +++ b/tests/test_email_content.py @@ -296,7 +296,7 @@ def test_prop_resp_exact_text(): note = _note(PropRespData(responses="Primary accepted: hep-lat", category_change="no primary -> hep-lat")) text, _ = render_prop_resp_block(note, _USER) assert text == ( - f"[{_WHEN}] {_USER} responded to category proposal(s):\n" + f"[{_WHEN}] {_USER}:\n" f" Primary accepted: hep-lat\n" f" Change: no primary -> hep-lat\n" ) @@ -306,7 +306,7 @@ def test_prop_resp_exact_html(): note = _note(PropRespData(responses="Primary accepted: hep-lat", category_change="no primary -> hep-lat")) _, html_out = render_prop_resp_block(note, _USER) assert html_out == ( - f"

[{_WHEN}] {_USER} responded to category proposal(s):
\n" + f"

[{_WHEN}] {_USER}:
\n" f"Primary accepted: hep-lat
\n" f"Change: no primary -> hep-lat

\n" )