This commit is contained in:
mrT23
2023-10-05 17:03:10 +03:00
parent f3e794e50b
commit 088f256415
4 changed files with 13 additions and 5 deletions

View File

@ -99,6 +99,8 @@ def parse_code_suggestion(code_suggestions: dict) -> str:
markdown_text += f"\n - **{sub_key}:** {sub_value}\n"
else:
markdown_text += f" **{sub_key}:** {sub_value}\n"
if "relevant line" not in sub_key.lower(): # nicer presentation
markdown_text = markdown_text.rstrip('\n') + "\\\n"
markdown_text += "\n"
return markdown_text