mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
Fix link formatting for relevant_line
This commit is contained in:
@ -116,7 +116,7 @@ def parse_code_suggestion(code_suggestions: dict, i: int = 0, gfm_supported: boo
|
|||||||
relevant_line = sub_value_list[0].lstrip('`').lstrip('[')
|
relevant_line = sub_value_list[0].lstrip('`').lstrip('[')
|
||||||
if len(sub_value_list) > 1:
|
if len(sub_value_list) > 1:
|
||||||
link = sub_value_list[1].rstrip(')').strip('`')
|
link = sub_value_list[1].rstrip(')').strip('`')
|
||||||
markdown_text += f"<td><a href={link}>{relevant_line}</a></td>"
|
markdown_text += f"<td><a href='{link}'>{relevant_line}</a></td>"
|
||||||
else:
|
else:
|
||||||
markdown_text += f"<td>{relevant_line}</td>"
|
markdown_text += f"<td>{relevant_line}</td>"
|
||||||
markdown_text += "</tr>"
|
markdown_text += "</tr>"
|
||||||
|
Reference in New Issue
Block a user