diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 28820fb8..261f2869 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -284,9 +284,8 @@ def convert_to_markdown_v2(output_data: dict, markdown_text += f"{emoji} No TODO sections" else: markdown_todo_items = format_todo_items(value) - todo_entry_label = f"{len(value)} " + "entries" if len(value) > 1 else "entry" - markdown_text += f"{emoji} TODO sections ({todo_entry_label})\n

\n" + markdown_text += f"{emoji} TODO sections\n

\n" markdown_text += f"
{todo_summary}\n\n" markdown_text += markdown_todo_items markdown_text += "\n
\n" @@ -296,9 +295,8 @@ def convert_to_markdown_v2(output_data: dict, markdown_text += f"### {emoji} No TODO sections\n\n" else: markdown_todo_items = format_todo_items(value) - todo_entry_label = f"{len(value)} " + "entries" if len(value) > 1 else "entry" - markdown_text += f"### {emoji} TODO sections ({todo_entry_label})\n
{todo_summary}\n\n" + markdown_text += f"### {emoji} TODO sections\n
{todo_summary}\n\n" markdown_text += markdown_todo_items markdown_text += "\n
\n\n" elif 'can be split' in key_nice.lower():