Reapply a necessary change that I removed from #6599 (thanks @mamei16!)

This commit is contained in:
oobabooga 2024-12-31 14:43:22 -08:00
parent e953af85cd
commit 64853f8509

View File

@ -176,7 +176,7 @@ def convert_to_markdown(string):
elif stripped_line.startswith('-') or stripped_line.startswith('*') or stripped_line.startswith('+') or stripped_line.startswith('>') or re.match(r'\d+\.', stripped_line):
result += '\n'
else:
result += '\n\n'
result += ' \n'
result = result.strip()
if is_code: