From 54a989d30fde2124c2df440c273cb8460124abc3 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 13 Feb 2024 18:37:48 +0200 Subject: [PATCH] no html bitbucket --- pr_agent/algo/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index df345511..8d1918e9 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -64,7 +64,10 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str: if gfm_supported: markdown_text += f" {emoji} {key_nice}\n\n{value}\n\n\n" else: - markdown_text += f"{emoji} **{key_nice}:** {value}\n\n" + if len(value.split()) > 1: + markdown_text += f"{emoji} **{key_nice}:**\n\n {value}\n\n" + else: + markdown_text += f"{emoji} **{key_nice}:** {value}\n\n" if gfm_supported: markdown_text += "\n"