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.

help-beta: Stop asides from making a tight list loose.

Shubham Padia49e7e9dae84e
diff --git a/tools/convert-help-center-docs-to-mdx b/tools/convert-help-center-docs-to-mdx
index 6f6d8a64f86..a199da4be7e 100755
--- a/tools/convert-help-center-docs-to-mdx
+++ b/tools/convert-help-center-docs-to-mdx
@@ -411,7 +411,11 @@ def convert_admonitions_to_asides(
admonition_content, post_admonition_content_text = detab(
post_admonition_declaration_text
)
- admonition_content = indent(admonition_content, INDENT_SPACES)
+ # We strip newline since we add explicit newlines before
+ # and after the component in the conversion code that
+ # follows this. Extra blank lines in between the components
+ # will make a tight list loose, which we do not desire.
+ admonition_content = indent(admonition_content, INDENT_SPACES).strip("\n")
klass, title = get_admonition_class_and_title(match)
# We ignore the title obtained above in each of the if