diff --git a/zerver/lib/markdown/help_relative_links.py b/zerver/lib/markdown/help_relative_links.py
index 4f72c52485..91f3613ac3 100644
--- a/zerver/lib/markdown/help_relative_links.py
+++ b/zerver/lib/markdown/help_relative_links.py
@@ -18,16 +18,25 @@ gear_info = {
# key is from REGEXP: `{relative|gear|key}`
# name is what the item is called in the gear menu: `Select **name**.`
# link is used for relative links: `Select [name](link).`
- "manage-streams": ["Manage streams", "/#streams/subscribed"],
- "settings": ["Personal Settings", "/#settings/profile"],
- "organization-settings": ["Organization settings", "/#organization/organization-profile"],
- "integrations": ["Integrations", "/integrations/"],
- "stats": ["Usage statistics", "/stats"],
- "plans": ["Plans and pricing", "/plans/"],
- "billing": ["Billing", "/billing/"],
- "keyboard-shortcuts": ["Keyboard shortcuts (?)", "/#keyboard-shortcuts"],
- "message-formatting": ["Message formatting", "/#message-formatting"],
- "search-filters": ["Search filters", "/#search-operators"],
+ "manage-streams": [' Manage streams', "/#streams/subscribed"],
+ "settings": [' Personal Settings', "/#settings/profile"],
+ "organization-settings": [
+ ' Organization settings',
+ "/#organization/organization-profile",
+ ],
+ "integrations": [' Integrations', "/integrations/"],
+ "stats": [' Usage statistics', "/stats"],
+ "plans": [' Plans and pricing', "/plans/"],
+ "billing": [' Billing', "/billing/"],
+ "keyboard-shortcuts": [
+ ' Keyboard shortcuts (?)',
+ "/#keyboard-shortcuts",
+ ],
+ "message-formatting": [
+ ' Message formatting',
+ "/#message-formatting",
+ ],
+ "search-filters": [' Search filters', "/#search-operators"],
"about-zulip": ["About Zulip", "/#about-zulip"],
}
diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py
index c1a490967c..4ef513990c 100644
--- a/zerver/tests/test_docs.py
+++ b/zerver/tests/test_docs.py
@@ -388,13 +388,18 @@ class HelpTest(ZulipTestCase):
def test_help_relative_links_for_gear(self) -> None:
result = self.client_get("/help/analytics")
- self.assertIn('Usage statistics', str(result.content))
+ self.assertIn(
+ ' Usage statistics',
+ str(result.content),
+ )
self.assertEqual(result.status_code, 200)
with self.settings(ROOT_DOMAIN_LANDING_PAGE=True):
result = self.client_get("/help/analytics", subdomain="")
self.assertEqual(result.status_code, 200)
- self.assertIn("Usage statistics", str(result.content))
+ self.assertIn(
+ ' Usage statistics', str(result.content)
+ )
self.assertNotIn("/stats", str(result.content))
def test_help_relative_links_for_stream(self) -> None: