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.

api_docs: Add line break before return value description text.

Lauryn Menarde479acc809f8
diff --git a/static/styles/portico/markdown.css b/static/styles/portico/markdown.css
index f0c6ca0367b..54e000201e0 100644
--- a/static/styles/portico/markdown.css
+++ b/static/styles/portico/markdown.css
@@ -171,7 +171,15 @@
}
& > li {
- margin: 5px 0;
+ margin: 5px 0 10px;
+
+ & > p {
+ margin: 0 0 5px;
+ }
+
+ & > p:first-child {
+ margin: 0;
+ }
}
}
diff --git a/zerver/lib/markdown/api_return_values_table_generator.py b/zerver/lib/markdown/api_return_values_table_generator.py
index f9cc85e78a8..0834ec2f83e 100644
--- a/zerver/lib/markdown/api_return_values_table_generator.py
+++ b/zerver/lib/markdown/api_return_values_table_generator.py
@@ -92,7 +92,8 @@ class APIReturnValuesTablePreprocessor(Preprocessor):
+ ": "
+ '<span class="api-field-type">'
+ data_type
- + "</span> "
+ + "</span>\n\n"
+ + (spacing + 4) * " "
+ key_description
)
return (
@@ -102,7 +103,8 @@ class APIReturnValuesTablePreprocessor(Preprocessor):
+ "`: "
+ '<span class="api-field-type">'
+ data_type
- + "</span> "
+ + "</span>\n\n"
+ + (spacing + 4) * " "
+ description
)