no html bitbucket

This commit is contained in:
mrT23
2024-02-13 18:37:48 +02:00
parent 480a890741
commit 54a989d30f

View File

@ -63,6 +63,9 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str:
emoji = emojis.get(key_nice, "") emoji = emojis.get(key_nice, "")
if gfm_supported: if gfm_supported:
markdown_text += f"<tr><td> {emoji} {key_nice}</td><td>\n\n{value}\n\n</td></tr>\n" markdown_text += f"<tr><td> {emoji} {key_nice}</td><td>\n\n{value}\n\n</td></tr>\n"
else:
if len(value.split()) > 1:
markdown_text += f"{emoji} **{key_nice}:**\n\n {value}\n\n"
else: else:
markdown_text += f"{emoji} **{key_nice}:** {value}\n\n" markdown_text += f"{emoji} **{key_nice}:** {value}\n\n"
if gfm_supported: if gfm_supported: