Skip to content

Commit

Permalink
Merge pull request #584 from samanhappy/link
Browse files Browse the repository at this point in the history
Fix link formatting for relevant_line
  • Loading branch information
mrT23 authored Jan 10, 2024
2 parents da3ac65 + 0f2a465 commit fb4746f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/algo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('[')
if len(sub_value_list) > 1:
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:
markdown_text += f"<td>{relevant_line}</td>"
markdown_text += "</tr>"
Expand Down

0 comments on commit fb4746f

Please sign in to comment.