Skip to content

Commit

Permalink
protection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Sep 8, 2024
1 parent 52e8d7b commit ebc5caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pr_agent/algo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ def process_description(description_full: str):
long_summary = res.group(4).strip()
long_summary = long_summary.replace('<br> *', '\n*').replace('<br>','').replace('\n','<br>')
long_summary = h.handle(long_summary).strip()
if not long_summary.startswith('*'):
if long_summary.startswith('\\-'):
long_summary = "* " + long_summary[2:]
elif not long_summary.startswith('*'):
long_summary = f"* {long_summary}"

files.append({
Expand Down

0 comments on commit ebc5caf

Please sign in to comment.