Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

streams: Add extra line break to description change notification.

Eeshan Garg625af3cea943
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 928febc98d0..0dc27f13cdd 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -5124,7 +5124,7 @@ def send_change_stream_description_notification(
with override_language(stream.realm.default_language):
notification_string = _(
- "{user} changed the description for this stream.\n"
+ "{user} changed the description for this stream.\n\n"
"Old description:\n"
"``` quote\n"
"{old_description}\n"
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index c9d62a2a91e..337148de66c 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -1204,7 +1204,7 @@ class StreamAdminTest(ZulipTestCase):
messages = get_topic_messages(user_profile, stream, "stream events")
expected_notification = (
- f"@_**{user_profile.full_name}|{user_profile.id}** changed the description for this stream.\n"
+ f"@_**{user_profile.full_name}|{user_profile.id}** changed the description for this stream.\n\n"
"Old description:\n"
"``` quote\n"
"Test description\n"
@@ -1266,7 +1266,7 @@ class StreamAdminTest(ZulipTestCase):
messages = get_topic_messages(user_profile, stream, "stream events")
expected_notification = (
- f"@_**{user_profile.full_name}|{user_profile.id}** changed the description for this stream.\n"
+ f"@_**{user_profile.full_name}|{user_profile.id}** changed the description for this stream.\n\n"
"Old description:\n"
"``` quote\n"
"See https://zulip.com/team\n"