From b25eb46b1b5a2e1633f994f3478d237a190f9f02 Mon Sep 17 00:00:00 2001 From: Sun Howwrongbum Date: Fri, 31 Dec 2021 16:48:58 +0530 Subject: docs: add line breaks in config descriptions --- tools/gen-config-doc.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gen-config-doc.py b/tools/gen-config-doc.py index c6d133ca6..62c4c535e 100644 --- a/tools/gen-config-doc.py +++ b/tools/gen-config-doc.py @@ -18,7 +18,12 @@ def get_config_key_descriptions(): try: key_match = key_match_re.search(i[1]) if key_match: - description = desc_re.sub("", i[0]).strip() + description = "
".join( + [ + x.strip().replace("\n", "") + for x in desc_re.sub("\n", i[0]).strip().split("\n\n") + ] + ) terms = [x.strip() for x in key_split_re.split(key_match.group(1))] key = terms[0].replace('"', "") default = terms[2] if len(terms) == 3 else None @@ -29,7 +34,7 @@ def get_config_key_descriptions(): {key} config

- {description}{f" Default: {default}." if default else ""} + {description}{f"
Default: {default}." if default else ""}

""" -- cgit v1.2.3