mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-09 12:09:04 +01:00
Reapply a necessary change that I removed from #6599 (thanks @mamei16!)
This commit is contained in:
parent
e953af85cd
commit
64853f8509
@ -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):
|
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'
|
result += '\n'
|
||||||
else:
|
else:
|
||||||
result += '\n\n'
|
result += ' \n'
|
||||||
|
|
||||||
result = result.strip()
|
result = result.strip()
|
||||||
if is_code:
|
if is_code:
|
||||||
|
Loading…
Reference in New Issue
Block a user